summaryrefslogtreecommitdiff
path: root/lib/LuaHandle.cc
diff options
context:
space:
mode:
authorpixel <pixel>2003-12-14 21:13:32 +0000
committerpixel <pixel>2003-12-14 21:13:32 +0000
commit187cf873560ca736900db3bb6c8c10d1f75724c4 (patch)
tree2dabb12d484e35b8072d789c7bbf96f09c0e525d /lib/LuaHandle.cc
parenta174ecb1bd01b4c7b28693ec08eda5acd436867d (diff)
Trying to fix garbage collector (failed...)
Diffstat (limited to 'lib/LuaHandle.cc')
-rw-r--r--lib/LuaHandle.cc14
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;