From 7bf6f717a41a5fbf1034ce649d27ca62c3182119 Mon Sep 17 00:00:00 2001 From: Alexandre Terrasa Date: Tue, 26 Feb 2013 18:21:15 -0500 Subject: [PATCH] nitg-se: fixed bug in subtyping type with phmod Signed-off-by: Alexandre Terrasa --- src/separate_erasure_compiler.nit | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/separate_erasure_compiler.nit b/src/separate_erasure_compiler.nit index 43227a7..831f04b 100644 --- a/src/separate_erasure_compiler.nit +++ b/src/separate_erasure_compiler.nit @@ -520,7 +520,7 @@ class SeparateErasureCompilerVisitor self.add("{res} = {accept_null};") self.add("\} else \{") end - if self.compiler.as(SeparateErasureCompiler).vt_layout isa PHPropertyLayoutBuilder[MVirtualTypeProp] then + if self.compiler.as(SeparateErasureCompiler).class_layout isa PHTypingLayout[MClass] then self.add("{cltype} = HASH({class_ptr}color, {idtype});") end self.add("if({cltype} >= {class_ptr}type_table->size) \{") -- 1.7.9.5