diff options
| author | Roberto Ierusalimschy <roberto@inf.puc-rio.br> | 2014-06-26 13:17:35 -0300 |
|---|---|---|
| committer | Roberto Ierusalimschy <roberto@inf.puc-rio.br> | 2014-06-26 13:17:35 -0300 |
| commit | c94f11d783f617af701429bb9ebfc7fc96d6a2d9 (patch) | |
| tree | 0fd802c96a615ef857806debc08aa583f7a9bf24 /ltable.c | |
| parent | 54ac5960a800c32d7d9824d15b14a31131301678 (diff) | |
| download | lua-c94f11d783f617af701429bb9ebfc7fc96d6a2d9.tar.gz lua-c94f11d783f617af701429bb9ebfc7fc96d6a2d9.tar.bz2 lua-c94f11d783f617af701429bb9ebfc7fc96d6a2d9.zip | |
'IntPoint' -> 'point2int' + ensure that casted value fits in
destination type
Diffstat (limited to 'ltable.c')
| -rw-r--r-- | ltable.c | 4 |
1 files changed, 2 insertions, 2 deletions
| @@ -1,5 +1,5 @@ | |||
| 1 | /* | 1 | /* |
| 2 | ** $Id: ltable.c,v 2.89 2014/05/26 17:10:22 roberto Exp roberto $ | 2 | ** $Id: ltable.c,v 2.90 2014/06/18 22:59:29 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 | */ |
| @@ -64,7 +64,7 @@ | |||
| 64 | #define hashmod(t,n) (gnode(t, ((n) % ((sizenode(t)-1)|1)))) | 64 | #define hashmod(t,n) (gnode(t, ((n) % ((sizenode(t)-1)|1)))) |
| 65 | 65 | ||
| 66 | 66 | ||
| 67 | #define hashpointer(t,p) hashmod(t, IntPoint(p)) | 67 | #define hashpointer(t,p) hashmod(t, point2int(p)) |
| 68 | 68 | ||
| 69 | 69 | ||
| 70 | #define dummynode (&dummynode_) | 70 | #define dummynode (&dummynode_) |
