From 45f45a4a47a9f0003538f5f963aacdce05606e5a Mon Sep 17 00:00:00 2001 From: Dan White Date: Mon, 6 May 2013 00:08:36 -0500 Subject: [PATCH] msp4th: cleanup --- msp4th/msp4th.c | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/msp4th/msp4th.c b/msp4th/msp4th.c index 2dba1d1..b588f17 100644 --- a/msp4th/msp4th.c +++ b/msp4th/msp4th.c @@ -719,12 +719,10 @@ void dfnFunc(){ // this function adds a new def to the list and creats a new opcode i = 0; while(wordBuffer[i]){ - cmdList[cmdListPtr] = wordBuffer[i]; - cmdListPtr = cmdListPtr + 1; + cmdList[cmdListPtr++] = wordBuffer[i]; i = i + 1; } - cmdList[cmdListPtr] = ' '; - cmdListPtr = cmdListPtr + 1; + cmdList[cmdListPtr++] = ' '; cmdList[cmdListPtr] = 0; i = lookupToken(wordBuffer,cmdList); progOps[i] = progPtr; -- 2.25.1