msp4th: cleanup
authorDan White <dan@whiteaudio.com>
Mon, 6 May 2013 05:08:36 +0000 (00:08 -0500)
committerDan White <dan@whiteaudio.com>
Mon, 6 May 2013 05:08:36 +0000 (00:08 -0500)
msp4th/msp4th.c

index 2dba1d1da4d04880d45ffea0968b7ef8dfcb75a3..b588f17baac0cdb62879016ef938aaf028c25a1b 100644 (file)
@@ -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;