added assert() in cut_last_push
authorkramm <kramm>
Tue, 6 Jan 2009 21:32:06 +0000 (21:32 +0000)
committerkramm <kramm>
Tue, 6 Jan 2009 21:32:06 +0000 (21:32 +0000)
lib/as3/code.c

index 4f7e255..d5c3acf 100644 (file)
@@ -1138,6 +1138,7 @@ code_t*code_cutlast(code_t*c)
 
 code_t* cut_last_push(code_t*c)
 {
+    assert(!c->next);
     while(c) {
         if(!c) break;
         opcode_t*op = opcode_get(c->opcode);