diff options
author | Cyrill Gorcunov <gorcunov@gmail.com> | 2010-11-08 00:47:10 +0300 |
---|---|---|
committer | Cyrill Gorcunov <gorcunov@gmail.com> | 2010-11-08 00:47:10 +0300 |
commit | 329e9665eb65d31694672f8826e231922da73a3f (patch) | |
tree | bef2cd67b89626a6598e8f44305c6414f1304937 | |
parent | db6b9cfa62cbeaf2f5a026605dea6dd586b1cfea (diff) | |
download | nasm-329e9665eb65d31694672f8826e231922da73a3f.tar.gz |
preproc.c: Fix OpenWatcom compiler error
It doesn't like when we mess scope of variables
declaration.
Signed-off-by: Cyrill Gorcunov <gorcunov@gmail.com>
-rw-r--r-- | preproc.c | 3 |
1 files changed, 1 insertions, 2 deletions
@@ -1422,7 +1422,6 @@ static ExpDef *new_ExpDef(int exp_type) */ static ExpInv *new_ExpInv(int exp_type, ExpDef *ed) { - unique ++; ExpInv *ei = nasm_malloc(sizeof(ExpInv)); ei->prev = NULL; ei->type = exp_type; @@ -1436,7 +1435,7 @@ static ExpInv *new_ExpInv(int exp_type, ExpDef *ed) ei->nparam = 0; ei->rotate = 0; ei->paramlen = NULL; - ei->unique = unique; + ei->unique = ++unique; ei->emitting = false; ei->lineno = 0; if ((istk->mmac_depth < 1) && |