From 0b30849628a9b6c38a9b22f9a8ecbc568d0d829d Mon Sep 17 00:00:00 2001 From: David Walter Seikel Date: Wed, 14 May 2014 18:24:25 +1000 Subject: Oops, fix up post increment. --- src/LuaSL/LuaSL_compile.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/LuaSL/LuaSL_compile.c') 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 if (MF_PREDEC & statement->flags) fprintf(file, "local function _preDecrement_%s() %s = %s - 1; return %s; end\n", name, name, name, name); if (MF_PREINC & statement->flags) fprintf(file, "local function _preIncrement_%s() %s = %s + 1; return %s; end\n", name, name, name, name); 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); - 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); + 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); } if (statement->elseBlock) -- cgit v1.1