diff options
author | Roberto Ierusalimschy <roberto@inf.puc-rio.br> | 2015-03-03 16:53:13 -0300 |
---|---|---|
committer | Roberto Ierusalimschy <roberto@inf.puc-rio.br> | 2015-03-03 16:53:13 -0300 |
commit | a00013c8d0d268616e004715da499e88e03b534c (patch) | |
tree | 3b2db21dd21acbf821cddd6e53172f1b4eeb4a9e | |
parent | b9a1f27250efd0433b93d23b92da19566f9b78e1 (diff) | |
download | lua-a00013c8d0d268616e004715da499e88e03b534c.tar.gz lua-a00013c8d0d268616e004715da499e88e03b534c.tar.bz2 lua-a00013c8d0d268616e004715da499e88e03b534c.zip |
'point2int' -> 'point2uint' (to reflect its actual result type)
-rw-r--r-- | llimits.h | 6 | ||||
-rw-r--r-- | ltable.c | 4 |
2 files changed, 5 insertions, 5 deletions
@@ -1,5 +1,5 @@ | |||
1 | /* | 1 | /* |
2 | ** $Id: llimits.h,v 1.130 2015/02/05 17:15:33 roberto Exp roberto $ | 2 | ** $Id: llimits.h,v 1.131 2015/02/09 15:41:56 roberto Exp roberto $ |
3 | ** Limits, basic types, and some other 'installation-dependent' definitions | 3 | ** Limits, basic types, and some other 'installation-dependent' definitions |
4 | ** See Copyright Notice in lua.h | 4 | ** See Copyright Notice in lua.h |
5 | */ | 5 | */ |
@@ -52,11 +52,11 @@ typedef unsigned char lu_byte; | |||
52 | 52 | ||
53 | 53 | ||
54 | /* | 54 | /* |
55 | ** conversion of pointer to integer: | 55 | ** conversion of pointer to unsigned integer: |
56 | ** this is for hashing only; there is no problem if the integer | 56 | ** this is for hashing only; there is no problem if the integer |
57 | ** cannot hold the whole pointer value | 57 | ** cannot hold the whole pointer value |
58 | */ | 58 | */ |
59 | #define point2int(p) ((unsigned int)((size_t)(p) & UINT_MAX)) | 59 | #define point2uint(p) ((unsigned int)((size_t)(p) & UINT_MAX)) |
60 | 60 | ||
61 | 61 | ||
62 | 62 | ||
@@ -1,5 +1,5 @@ | |||
1 | /* | 1 | /* |
2 | ** $Id: ltable.c,v 2.104 2015/02/20 14:05:01 roberto Exp roberto $ | 2 | ** $Id: ltable.c,v 2.105 2015/02/20 14:27:53 roberto Exp roberto $ |
3 | ** Lua tables (hash) | 3 | ** Lua tables (hash) |
4 | ** See Copyright Notice in lua.h | 4 | ** See Copyright Notice in lua.h |
5 | */ | 5 | */ |
@@ -70,7 +70,7 @@ | |||
70 | #define hashmod(t,n) (gnode(t, ((n) % ((sizenode(t)-1)|1)))) | 70 | #define hashmod(t,n) (gnode(t, ((n) % ((sizenode(t)-1)|1)))) |
71 | 71 | ||
72 | 72 | ||
73 | #define hashpointer(t,p) hashmod(t, point2int(p)) | 73 | #define hashpointer(t,p) hashmod(t, point2uint(p)) |
74 | 74 | ||
75 | 75 | ||
76 | #define dummynode (&dummynode_) | 76 | #define dummynode (&dummynode_) |