From: Alexis Laferrière Date: Thu, 13 Feb 2014 01:03:24 +0000 (-0500) Subject: nitg: fix FFI _is_null functions X-Git-Tag: v0.6.5~51^2~5 X-Git-Url: http://nitlanguage.org nitg: fix FFI _is_null functions Signed-off-by: Alexis Laferrière --- diff --git a/src/compiler_ffi.nit b/src/compiler_ffi.nit index 36c1453..2d520ac 100644 --- a/src/compiler_ffi.nit +++ b/src/compiler_ffi.nit @@ -483,7 +483,7 @@ redef class MExplicitCast # special checks if from == to.as_nullable then # format A_is_null - ccu.header_decl.add("#define {from.mangled_cname}_is_null {from.mangled_cname}_is_a_{to.mangled_cname}\n") + ccu.header_decl.add("#define {from.mangled_cname}_is_null !{from.mangled_cname}_is_a_{to.mangled_cname}\n") end #