nitg-e: change empty slots representation in vt tables to avoid C warning in sparse...
authorAlexandre Terrasa <alexandre@moz-code.org>
Thu, 6 Dec 2012 20:28:08 +0000 (15:28 -0500)
committerAlexandre Terrasa <alexandre@moz-code.org>
Thu, 6 Dec 2012 20:28:08 +0000 (15:28 -0500)
Signed-off-by: Alexandre Terrasa <alexandre@moz-code.org>

src/separate_erasure_compiler.nit

index 93aca02..9f6b74e 100644 (file)
@@ -261,7 +261,7 @@ class SeparateErasureCompiler
 
                for vt in self.vt_tables[mclass] do
                        if vt == null then
-                               v.add_decl("NULL, /* empty */")
+                               v.add_decl("\{-1, NULL\}, /* empty */")
                        else
                                var is_null = 0
                                var bound = retrieve_vt_bound(mclass.intro.bound_mtype, vt.bound)