diff options
Diffstat (limited to 'lib')
-rw-r--r-- | lib/LuaHandle.cc | 8 |
1 files changed, 2 insertions, 6 deletions
diff --git a/lib/LuaHandle.cc b/lib/LuaHandle.cc index 363509e..13668b5 100644 --- a/lib/LuaHandle.cc +++ b/lib/LuaHandle.cc @@ -374,7 +374,6 @@ int sLuaHandle::readU32(lua_State * L) { int sLuaHandle::readU64(lua_State * __L) { Lua * L = Lua::find(__L); int n = L->gettop(); - lua_Number r; Handle * h; if (n != 1) { @@ -405,7 +404,6 @@ int sLuaHandle::read32(lua_State * L) { int sLuaHandle::read64(lua_State * __L) { Lua * L = Lua::find(__L); int n = L->gettop(); - lua_Number r; Handle * h; if (n != 1) { @@ -507,7 +505,6 @@ int sLuaHandle::writeU32(lua_State * L) { int sLuaHandle::writeU64(lua_State * __L) { Lua * L = Lua::find(__L); int n = L->gettop(); - lua_Number r; Handle * h; if ((n != 2) || !L->isstring(2)) { @@ -517,7 +514,7 @@ int sLuaHandle::writeU64(lua_State * __L) { h = L->recast<Handle>(1); String r = L->tostring(2); - h->WriteU64(r.to_Uint64()); + h->writeU64(r.to_Uint64()); return 0; } @@ -537,7 +534,6 @@ int sLuaHandle::write32(lua_State * L) { int sLuaHandle::write64(lua_State * __L) { Lua * L = Lua::find(__L); int n = L->gettop(); - lua_Number r; Handle * h; if ((n != 2) || !L->isstring(2)) { @@ -547,7 +543,7 @@ int sLuaHandle::write64(lua_State * __L) { h = L->recast<Handle>(1); String r = L->tostring(2); - h->Write64(r.to_int64()); + h->write64(r.to_int64()); return 0; } |