diff --git a/HISTORY b/HISTORY index 8c52d60..910b12e 100755 --- a/HISTORY +++ b/HISTORY @@ -1,3 +1,6 @@ +Jan. 3 2017 +Fixed a parsing bug with unary negative operator + Nov. 28 2017 Fixed a referencing bug with the IF statement diff --git a/core/my_basic.c b/core/my_basic.c index 485ba0b..9fe8c73 100755 --- a/core/my_basic.c +++ b/core/my_basic.c @@ -5662,7 +5662,7 @@ _routine: /* _func_t */ if(!context->last_symbol || (context->last_symbol && ((context->last_symbol->type == _DT_FUNC && context->last_symbol->data.func->pointer != _core_close_bracket) || - context->last_symbol->type == _DT_SEP))) { + context->last_symbol->type == _DT_SEP || context->last_symbol->type == _DT_EOS))) { if(strcmp("-", sym) == 0) { ptr = (intptr_t)_core_neg; memcpy(*value, &ptr, sizeof(intptr_t));