aboutsummaryrefslogtreecommitdiff
path: root/lparser.c
diff options
context:
space:
mode:
Diffstat (limited to 'lparser.c')
-rw-r--r--lparser.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/lparser.c b/lparser.c
index 83e341ed..380e45f5 100644
--- a/lparser.c
+++ b/lparser.c
@@ -405,7 +405,7 @@ static int searchvar (FuncState *fs, TString *n, expdesc *var) {
405 init_exp(var, VCONST, fs->firstlocal + i); 405 init_exp(var, VCONST, fs->firstlocal + i);
406 else /* real variable */ 406 else /* real variable */
407 init_var(fs, var, i); 407 init_var(fs, var, i);
408 return var->k; 408 return cast_int(var->k);
409 } 409 }
410 } 410 }
411 return -1; /* not found */ 411 return -1; /* not found */