diff options
author | Nicolas "Pixel" Noble <pixel@nobis-crew.org> | 2009-12-27 22:58:19 +0100 |
---|---|---|
committer | Nicolas "Pixel" Noble <pixel@nobis-crew.org> | 2009-12-27 22:58:19 +0100 |
commit | a4b350c70586a26e16c1742741e72852bda1b563 (patch) | |
tree | b9c6c51267f592b0812885dac7366aec8b90fac8 | |
parent | d0dbe37df6181f45dd774b779c7ac7b2e1b5f178 (diff) | |
parent | 4a882e8041c00c5f1e6fe1aa3974042181458b53 (diff) |
Merge branch 'master' of /pub/repo.git/Baltisot
-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; } |