diff options
author | David Walter Seikel | 2014-05-14 18:24:25 +1000 |
---|---|---|
committer | David Walter Seikel | 2014-05-14 18:24:25 +1000 |
commit | 0b30849628a9b6c38a9b22f9a8ecbc568d0d829d (patch) | |
tree | 594d7088cd54ad1b2090f56242a1c0aa98ed3679 | |
parent | Update the big LuaSL TODO. (diff) | |
download | SledjHamr-0b30849628a9b6c38a9b22f9a8ecbc568d0d829d.zip SledjHamr-0b30849628a9b6c38a9b22f9a8ecbc568d0d829d.tar.gz SledjHamr-0b30849628a9b6c38a9b22f9a8ecbc568d0d829d.tar.bz2 SledjHamr-0b30849628a9b6c38a9b22f9a8ecbc568d0d829d.tar.xz |
Oops, fix up post increment.
-rw-r--r-- | src/LuaSL/LuaSL_compile.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/LuaSL/LuaSL_compile.c b/src/LuaSL/LuaSL_compile.c index 41d354f..90c9ac1 100644 --- a/src/LuaSL/LuaSL_compile.c +++ b/src/LuaSL/LuaSL_compile.c | |||
@@ -1790,7 +1790,7 @@ static void outputRawStatement(FILE *file, outputMode mode, LSL_Statement *state | |||
1790 | if (MF_PREDEC & statement->flags) fprintf(file, "local function _preDecrement_%s() %s = %s - 1; return %s; end\n", name, name, name, name); | 1790 | if (MF_PREDEC & statement->flags) fprintf(file, "local function _preDecrement_%s() %s = %s - 1; return %s; end\n", name, name, name, name); |
1791 | if (MF_PREINC & statement->flags) fprintf(file, "local function _preIncrement_%s() %s = %s + 1; return %s; end\n", name, name, name, name); | 1791 | if (MF_PREINC & statement->flags) fprintf(file, "local function _preIncrement_%s() %s = %s + 1; return %s; end\n", name, name, name, name); |
1792 | if (MF_POSTDEC & statement->flags) fprintf(file, "local function _postDecrement_%s() local _temp = %s; %s = %s - 1; return _temp; end\n", name, name, name, name); | 1792 | if (MF_POSTDEC & statement->flags) fprintf(file, "local function _postDecrement_%s() local _temp = %s; %s = %s - 1; return _temp; end\n", name, name, name, name); |
1793 | if (MF_POSTINC & statement->flags) fprintf(file, "local function _postDecrement_%s() local _temp = %s; %s = %s + 1; return _temp; end\n", name, name, name, name); | 1793 | if (MF_POSTINC & statement->flags) fprintf(file, "local function _postIncrement_%s() local _temp = %s; %s = %s + 1; return _temp; end\n", name, name, name, name); |
1794 | } | 1794 | } |
1795 | 1795 | ||
1796 | if (statement->elseBlock) | 1796 | if (statement->elseBlock) |