[Wisp-cvs] wisp/src evm.c,1.342,1.343
Status: Alpha
Brought to you by:
digg
From: <di...@us...> - 2004-10-10 20:48:13
|
Update of /cvsroot/wisp/wisp/src In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv14947 Modified Files: evm.c Log Message: fixed a side effect in GIH_j to make Wisp work when compiled with gcc 3.3 Index: evm.c =================================================================== RCS file: /cvsroot/wisp/wisp/src/evm.c,v retrieving revision 1.342 retrieving revision 1.343 diff -u -d -r1.342 -r1.343 --- evm.c 18 Sep 2002 21:03:05 -0000 1.342 +++ evm.c 10 Oct 2004 20:47:09 -0000 1.343 @@ -174,8 +174,14 @@ NS_push (*IP++); NEXT; IH_J: GIH (j); - IP += (signed long int) *IP++; - NEXT; + { + /* XXX: these used to be done in a single statement + * but that doesn't seem to work in gcc's interpretation of + * side-effected statements */ + signed long int delta = *IP++; + IP += delta; + NEXT; + } IH_B: GIH (b); IP = (void *) *IP; NEXT; |