diff options
author | Roberto Ierusalimschy <roberto@inf.puc-rio.br> | 2001-02-20 15:18:00 -0300 |
---|---|---|
committer | Roberto Ierusalimschy <roberto@inf.puc-rio.br> | 2001-02-20 15:18:00 -0300 |
commit | c1db0b2bf1ba9c5e60d77fd70f8de06aab2e0e93 (patch) | |
tree | b156105dfe35465dc8a845d278ce7c8b2c41b24c | |
parent | 099442c41f2cec6122690e6c8f2e11327613e6f6 (diff) | |
download | lua-c1db0b2bf1ba9c5e60d77fd70f8de06aab2e0e93.tar.gz lua-c1db0b2bf1ba9c5e60d77fd70f8de06aab2e0e93.tar.bz2 lua-c1db0b2bf1ba9c5e60d77fd70f8de06aab2e0e93.zip |
detail
-rw-r--r-- | ltests.c | 5 |
1 files changed, 3 insertions, 2 deletions
@@ -1,5 +1,5 @@ | |||
1 | /* | 1 | /* |
2 | ** $Id: ltests.c,v 1.67 2001/02/09 20:29:33 roberto Exp roberto $ | 2 | ** $Id: ltests.c,v 1.68 2001/02/13 16:52:01 roberto Exp roberto $ |
3 | ** Internal Module for Debugging of the Lua Implementation | 3 | ** Internal Module for Debugging of the Lua Implementation |
4 | ** See Copyright Notice in lua.h | 4 | ** See Copyright Notice in lua.h |
5 | */ | 5 | */ |
@@ -377,7 +377,8 @@ static int udataval (lua_State *L) { | |||
377 | } | 377 | } |
378 | 378 | ||
379 | static int newtag (lua_State *L) { | 379 | static int newtag (lua_State *L) { |
380 | lua_pushnumber(L, lua_newtype(L, lua_tostring(L, 1), lua_tonumber(L, 2))); | 380 | lua_pushnumber(L, lua_newtype(L, lua_tostring(L, 1), |
381 | (int)lua_tonumber(L, 2))); | ||
381 | return 1; | 382 | return 1; |
382 | } | 383 | } |
383 | 384 | ||