small update
[mTask.git] / client / interpret.c
index 0f65888..e5907cf 100644 (file)
@@ -16,7 +16,7 @@
 
 #define f16(p) program[pc]*265+program[pc+1]
 
-uint8_t stack[STACKSIZE] = {0};
+uint16_t stack[STACKSIZE] = {0};
 
 void run_task(struct task *t)
 {
@@ -164,7 +164,7 @@ void run_task(struct task *t)
 #endif
                case BCRETURN: trace("Return");
                        pc = plen;
-                       t = stack[sp-1];
+                       t->value = (uint16_t) stack[sp-1];
                        break;
                default:
                        trace("unrecognized");