Mercurial > hg > CbC > old > device
diff test/conv1.c @ 158:7bc02f0800a9
fix conv1
author | kono |
---|---|
date | Thu, 14 Aug 2003 01:37:19 +0900 |
parents | ccb2002d8a31 |
children | 096559f07a70 |
line wrap: on
line diff
--- a/test/conv1.c Tue Aug 05 14:50:37 2003 +0900 +++ b/test/conv1.c Thu Aug 14 01:37:19 2003 +0900 @@ -62,8 +62,9 @@ code f_g1(int j,stack sp) { // Continuation struct f_g0_interface *c = sp; int k = c->k_; - sp += sizeof(struct f_g0_interface); - goto (( (struct cont_interface *)sp)->ret)(k+4+j,sp); + sp+=sizeof(struct f_g0_interface); + c = (struct f_g0_interface *)sp; + goto (c->ret)(k+4+j,sp); } code g(int i,stack sp) { // Caller @@ -79,12 +80,14 @@ code g_h1(int j,stack sp) { // Continuation struct f_g0_interface *c = sp; int i = c->i_; - sp += sizeof(struct f_g0_interface); - goto (( (struct cont_interface *)sp)->ret)(j+i,sp); + sp+=sizeof(struct f_g0_interface); + c = (struct f_g0_interface *)sp; + goto (c->ret)(j+i,sp); } code h(int i,stack sp) { - goto (( (struct cont_interface *)sp)->ret)(i+4,sp); + struct f_g0_interface *c = sp; + goto (c->ret)(i+4,sp); } struct main_continuation { // General Return Continuation