comparison test/fib.c @ 15:b71bab34ec65

Added forgotten release_ref to fib test
author Mike Pavone <pavone@retrodev.com>
date Tue, 26 May 2009 23:36:41 -0400
parents 31f8182f3433
children d4b44ae2e34a
comparison
equal deleted inserted replaced
12:31f8182f3433 15:b71bab34ec65
28 MCall(METHOD_LESS, 2) 28 MCall(METHOD_LESS, 2)
29 29
30 MCall(METHOD_IF, 1) 30 MCall(METHOD_IF, 1)
31 31
32 if(call->params[0]) 32 if(call->params[0])
33 {
34 release_ref(call->params[0]);
33 locals->out = add_ref(const_1); 35 locals->out = add_ref(const_1);
36 }
34 37
35 if(call->params[1]) 38 if(call->params[1])
36 { 39 {
40 release_ref(call->params[1]);
37 call->params[0] = add_ref(cdata->params[0]); 41 call->params[0] = add_ref(cdata->params[0]);
38 call->params[1] = add_ref(const_1); 42 call->params[1] = add_ref(const_1);
39 MCall(METHOD_SUB, 2) 43 MCall(METHOD_SUB, 2)
40 locals->work1 = call->params[0]; 44 locals->work1 = call->params[0];
41 45