core: 32 bits fixes
authorAlexis Laferrière <alexis.laf@xymus.net>
Thu, 2 Mar 2017 19:51:15 +0000 (11:51 -0800)
committerAlexis Laferrière <alexis.laf@xymus.net>
Tue, 14 Mar 2017 12:48:16 +0000 (08:48 -0400)
Signed-off-by: Alexis Laferrière <alexis.laf@xymus.net>

lib/core/kernel.nit

index fa7b6f4..a821006 100644 (file)
@@ -1063,7 +1063,7 @@ extern class Pointer
        fun free `{ free(self); `}
 
        # Use the address value
-       redef fun hash `{ return (long)self; `}
+       redef fun hash `{ return (long)(intptr_t)self; `}
 
        # Is equal to any instance pointing to the same address
        redef fun ==(o) do return o isa Pointer and native_equals(o)