From 4a882e8041c00c5f1e6fe1aa3974042181458b53 Mon Sep 17 00:00:00 2001 From: "Nicolas \"Pixel\" Noble" Date: Sun, 27 Dec 2009 22:36:08 +0100 Subject: Fixing various extra variables, and wrongly named functions. --- lib/LuaHandle.cc | 8 ++------ 1 file 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(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(1); String r = L->tostring(2); - h->Write64(r.to_int64()); + h->write64(r.to_int64()); return 0; } -- cgit v1.2.3