From 910836fb53cb80e93de666526714bc51f2c63510 Mon Sep 17 00:00:00 2001 From: Roberto Ierusalimschy Date: Tue, 19 Oct 1999 11:33:22 -0200 Subject: warnings from Visual C++ --- ltable.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'ltable.c') diff --git a/ltable.c b/ltable.c index adb7932f..947f1813 100644 --- a/ltable.c +++ b/ltable.c @@ -1,5 +1,5 @@ /* -** $Id: ltable.c,v 1.25 1999/10/04 17:51:04 roberto Exp roberto $ +** $Id: ltable.c,v 1.26 1999/10/14 19:13:31 roberto Exp roberto $ ** Lua tables (hash) ** See Copyright Notice in lua.h */ @@ -63,7 +63,7 @@ static Node *luaH_mainposition (const Hash *t, const TObject *key) { lua_error("unexpected type to index table"); h = 0; /* to avoid warnings */ } - return &t->node[h%t->size]; + return &t->node[h%(unsigned int)t->size]; } -- cgit v1.2.3-55-g6feb