Inst not used as union

Bert Wesarg bert.wesarg at googlemail.com
Mon Oct 6 14:11:22 CEST 2008


All,

can someone confirm that in FillLoopAddrs() we still use Inst not as a union?

See patch for a working solution.

And to which branch should I commit this?

Bert
-------------- next part --------------
---

 source/interpret.c |    4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --quilt old/source/interpret.c new/source/interpret.c
--- old/source/interpret.c
+++ new/source/interpret.c
@@ -450,9 +450,9 @@ void FillLoopAddrs(Inst *breakAddr, Inst
     	if (*LoopStackPtr == NULL)
     	    break;
     	if ((*LoopStackPtr)->value == NEEDS_BREAK)
-    	    **(Inst ***)LoopStackPtr = (Inst *)(breakAddr - *LoopStackPtr);
+            (*LoopStackPtr)->value = breakAddr - *LoopStackPtr;
     	else if ((*LoopStackPtr)->value == NEEDS_CONTINUE)
-    	    **(Inst ***)LoopStackPtr = (Inst *)(continueAddr - *LoopStackPtr);
+            (*LoopStackPtr)->value = continueAddr - *LoopStackPtr;
     	else
     	    fprintf(stderr, "NEdit: internal error (uat) in macro parser\n");
     }


More information about the Develop mailing list