From c94f11d783f617af701429bb9ebfc7fc96d6a2d9 Mon Sep 17 00:00:00 2001 From: Roberto Ierusalimschy Date: Thu, 26 Jun 2014 13:17:35 -0300 Subject: 'IntPoint' -> 'point2int' + ensure that casted value fits in destination type --- ltable.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'ltable.c') diff --git a/ltable.c b/ltable.c index 3a80d9d0..712b9814 100644 --- a/ltable.c +++ b/ltable.c @@ -1,5 +1,5 @@ /* -** $Id: ltable.c,v 2.89 2014/05/26 17:10:22 roberto Exp roberto $ +** $Id: ltable.c,v 2.90 2014/06/18 22:59:29 roberto Exp roberto $ ** Lua tables (hash) ** See Copyright Notice in lua.h */ @@ -64,7 +64,7 @@ #define hashmod(t,n) (gnode(t, ((n) % ((sizenode(t)-1)|1)))) -#define hashpointer(t,p) hashmod(t, IntPoint(p)) +#define hashpointer(t,p) hashmod(t, point2int(p)) #define dummynode (&dummynode_) -- cgit v1.2.3-55-g6feb