integer exponentiation with negative exponent is invalid

This commit is contained in:
Roberto Ierusalimschy
2013-12-16 12:30:22 -02:00
parent 1a19893d6f
commit a8f8c7fd80
4 changed files with 32 additions and 30 deletions

4
lvm.h
View File

@@ -1,5 +1,5 @@
/*
** $Id: lvm.h,v 2.22 2013/04/29 17:12:50 roberto Exp roberto $
** $Id: lvm.h,v 2.23 2013/05/02 12:31:26 roberto Exp roberto $
** Lua virtual machine
** See Copyright Notice in lua.h
*/
@@ -43,7 +43,7 @@ LUAI_FUNC void luaV_execute (lua_State *L);
LUAI_FUNC void luaV_concat (lua_State *L, int total);
LUAI_FUNC lua_Integer luaV_div (lua_State *L, lua_Integer x, lua_Integer y);
LUAI_FUNC lua_Integer luaV_mod (lua_State *L, lua_Integer x, lua_Integer y);
LUAI_FUNC lua_Integer luaV_pow (lua_Integer x, lua_Integer y);
LUAI_FUNC lua_Integer luaV_pow (lua_State *L, lua_Integer x, lua_Integer y);
LUAI_FUNC void luaV_objlen (lua_State *L, StkId ra, const TValue *rb);
#endif