From: Alexis Laferrière Date: Thu, 2 Mar 2017 19:51:15 +0000 (-0800) Subject: core: 32 bits fixes X-Git-Url: http://nitlanguage.org?hp=-c core: 32 bits fixes Signed-off-by: Alexis Laferrière --- 0eedb1c0efff56067cebce1992122c51bb4ce5d0 diff --git a/lib/core/kernel.nit b/lib/core/kernel.nit index fa7b6f4..a821006 100644 --- a/lib/core/kernel.nit +++ b/lib/core/kernel.nit @@ -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)