From b3a9d384eb88b3065ba2db0ef19684b5169a8aa7 Mon Sep 17 00:00:00 2001 From: Bert Wesarg Date: Mon, 6 Oct 2008 16:58:16 +0000 Subject: [PATCH] Fix use of Inst not as union. There was a leftover in FillLoopAddrs() from the conversion of Inst to an enum, fix this. --- source/interpret.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/source/interpret.c b/source/interpret.c index e2eee38..f3f7f30 100644 --- a/source/interpret.c +++ b/source/interpret.c @@ -1,4 +1,4 @@ -static const char CVSID[] = "$Id: interpret.c,v 1.54 2008/10/03 14:34:55 lebert Exp $"; +static const char CVSID[] = "$Id: interpret.c,v 1.55 2008/10/06 16:58:16 lebert Exp $"; /******************************************************************************* * * * interpret.c -- Nirvana Editor macro interpreter * @@ -450,9 +450,9 @@ void FillLoopAddrs(Inst *breakAddr, Inst *continueAddr) 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"); } -- 2.11.4.GIT