MAJOR: arg: converts uint and sint in sint
This patch removes the 32 bits unsigned integer and the 32 bit signed
integer. It replaces these types by a unique type 64 bit signed.
diff --git a/src/hlua.c b/src/hlua.c
index 34e14e8..6fe3797 100644
--- a/src/hlua.c
+++ b/src/hlua.c
@@ -317,10 +317,6 @@
{
switch (arg->type) {
case ARGT_SINT:
- lua_pushinteger(L, arg->data.sint);
- break;
-
- case ARGT_UINT:
case ARGT_TIME:
case ARGT_SIZE:
lua_pushinteger(L, arg->data.sint);
@@ -374,7 +370,7 @@
case LUA_TTHREAD:
case LUA_TLIGHTUSERDATA:
arg->type = ARGT_SINT;
- arg->data.uint = 0;
+ arg->data.sint = 0;
break;
}
return 1;
@@ -608,12 +604,6 @@
argp[idx].type = ARGT_SINT;
break;
- case ARGT_UINT:
- if (argp[idx].type != ARGT_SINT)
- WILL_LJMP(luaL_argerror(L, first + idx, "integer expected"));
- argp[idx].type = ARGT_SINT;
- break;
-
case ARGT_TIME:
if (argp[idx].type != ARGT_SINT)
WILL_LJMP(luaL_argerror(L, first + idx, "integer expected"));