nitlanguage
/
nit.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
8391ae5
)
nitg-erase: put 0 in arrays of int, not NULL
author
Jean Privat
<jean@pryen.org>
Fri, 30 Nov 2012 20:41:33 +0000
(15:41 -0500)
committer
Jean Privat
<jean@pryen.org>
Fri, 30 Nov 2012 21:12:30 +0000
(16:12 -0500)
Signed-off-by: Jean Privat <jean@pryen.org>
src/separate_erasure_compiler.nit
patch
|
blob
|
history
diff --git
a/src/separate_erasure_compiler.nit
b/src/separate_erasure_compiler.nit
index
cd2b8e2
..
251b2a5
100644
(file)
--- a/
src/separate_erasure_compiler.nit
+++ b/
src/separate_erasure_compiler.nit
@@
-128,7
+128,7
@@
class SeparateErasureCompiler
v.add("const char const * class_names[] = \{")
for t in type_array do
if t == null then
- v.add("NULL,")
+ v.add("NULL, /* empty */")
else
v.add("\"{t}\",")
end
@@
-211,7
+211,7
@@
class SeparateErasureCompiler
v.add_decl("\{")
for msuper in class_table do
if msuper == null then
- v.add_decl("NULL, /* empty */")
+ v.add_decl("0, /* empty */")
else
v.add_decl("{self.class_ids[msuper]}, /* {msuper} */")
end