diff options
Diffstat (limited to 'lib/LuaHandle.cc')
-rw-r--r-- | lib/LuaHandle.cc | 14 |
1 files changed, 7 insertions, 7 deletions
diff --git a/lib/LuaHandle.cc b/lib/LuaHandle.cc index d1659a2..5e9a8ce 100644 --- a/lib/LuaHandle.cc +++ b/lib/LuaHandle.cc @@ -17,7 +17,7 @@ * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA */ -/* $Id: LuaHandle.cc,v 1.10 2003-12-12 12:45:20 pixel Exp $ */ +/* $Id: LuaHandle.cc,v 1.11 2003-12-14 21:13:33 pixel Exp $ */ #include "LuaHandle.h" @@ -287,9 +287,9 @@ int sLuaHandle::read(lua_State * _L, int t) { h = (Handle *) LuaObject::getme(L); switch (t) { - case U8: r = h->readU8(); - case U16: r = h->readU16(); - case U32: r = h->readU32(); + case U8: r = h->readU8(); break; + case U16: r = h->readU16(); break; + case U32: r = h->readU32(); break; } L->push(r); @@ -311,9 +311,9 @@ int sLuaHandle::write(lua_State * _L, int t) { r = L->tonumber(); switch (t) { - case U8: h->writeU8(r); - case U16: h->writeU16(r); - case U32: h->writeU32(r); + case U8: h->writeU8(r); break; + case U16: h->writeU16(r); break; + case U32: h->writeU32(r); break; } return 0; |