From 3d1c6730daac6d2d0f33f3ed2372c235b6cf5286 Mon Sep 17 00:00:00 2001 From: Roberto Ierusalimschy Date: Mon, 31 Mar 2014 16:18:24 -0300 Subject: [PATCH] detail ('1U' -> '1u', like other unsigned constants in the code) --- lvm.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/lvm.c b/lvm.c index c536f74c..51dbc098 100644 --- a/lvm.c +++ b/lvm.c @@ -1,5 +1,5 @@ /* -** $Id: lvm.c,v 2.190 2014/03/15 12:29:48 roberto Exp roberto $ +** $Id: lvm.c,v 2.191 2014/03/31 18:37:52 roberto Exp roberto $ ** Lua virtual machine ** See Copyright Notice in lua.h */ @@ -325,7 +325,7 @@ void luaV_objlen (lua_State *L, StkId ra, const TValue *rb) { lua_Integer luaV_div (lua_State *L, lua_Integer x, lua_Integer y) { - if (cast_unsigned(y) + 1 <= 1U) { /* special cases: -1 or 0 */ + if (cast_unsigned(y) + 1 <= 1u) { /* special cases: -1 or 0 */ if (y == 0) luaG_runerror(L, "attempt to divide by zero"); return intop(-, 0, x); /* y==-1; avoid overflow with 0x80000...//-1 */ @@ -341,7 +341,7 @@ lua_Integer luaV_div (lua_State *L, lua_Integer x, lua_Integer y) { lua_Integer luaV_mod (lua_State *L, lua_Integer x, lua_Integer y) { - if (cast_unsigned(y) + 1 <= 1U) { /* special cases: -1 or 0 */ + if (cast_unsigned(y) + 1 <= 1u) { /* special cases: -1 or 0 */ if (y == 0) luaG_runerror(L, "attempt to perform 'n%%0'"); return 0; /* y==-1; avoid overflow with 0x80000...%-1 */