nitlanguage
/
nit.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
c02e042
)
core: 32 bits fixes
author
Alexis Laferrière
<alexis.laf@xymus.net>
Thu, 2 Mar 2017 19:51:15 +0000
(11:51 -0800)
committer
Alexis 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
patch
|
blob
|
history
diff --git
a/lib/core/kernel.nit
b/lib/core/kernel.nit
index
fa7b6f4
..
a821006
100644
(file)
--- 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)