diff options
Diffstat (limited to 'edify/expr.c')
-rw-r--r-- | edify/expr.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/edify/expr.c b/edify/expr.c index 129fbd96b..5470a2bac 100644 --- a/edify/expr.c +++ b/edify/expr.c @@ -283,7 +283,7 @@ static int fn_size = 0; NamedFunction* fn_table = NULL; void RegisterFunction(const char* name, Function fn) { - if (fn_entries <= fn_size) { + if (fn_entries >= fn_size) { fn_size = fn_size*2 + 1; fn_table = realloc(fn_table, fn_size * sizeof(NamedFunction)); } |