summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorNicolas "Pixel" Noble <pixel@nobis-crew.org>2009-12-27 22:36:08 +0100
committerNicolas "Pixel" Noble <pixel@nobis-crew.org>2009-12-27 22:36:08 +0100
commit4a882e8041c00c5f1e6fe1aa3974042181458b53 (patch)
tree7a9fd941cb21770fbc77da1a7cce94e25b755e0c
parent04bfbe54f86d0e34abe2a7bf5c468e20e75a9a21 (diff)
Fixing various extra variables, and wrongly named functions.
-rw-r--r--lib/LuaHandle.cc8
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;
}