lua

A copy of the Lua development repository
Log | Files | Refs | README

commit 3d1c6730daac6d2d0f33f3ed2372c235b6cf5286
parent 66b7b9b58294961bc07efe6ac4651663772c0e93
Author: Roberto Ierusalimschy <roberto@inf.puc-rio.br>
Date:   Mon, 31 Mar 2014 16:17:59 -0300

detail ('1U' -> '1u', like other unsigned constants in the code)

Diffstat:
Mlvm.c | 6+++---
1 file changed, 3 insertions(+), 3 deletions(-)

diff --git 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 */