Fix narrowing casts of pointer differences for x64.

This commit is contained in:
Mike Pall
2009-12-29 20:19:54 +01:00
parent d64b031269
commit 52eb88773e
3 changed files with 4 additions and 4 deletions

View File

@@ -337,7 +337,7 @@ LJLIB_CF(dofile)
if (luaL_loadfile(L, fname ? strdata(fname) : NULL) != 0)
lua_error(L);
lua_call(L, 0, LUA_MULTRET);
return (L->top - L->base) - 1;
return cast_int(L->top - L->base) - 1;
}
/* -- Base library: GC control -------------------------------------------- */