mirror of
				https://github.com/eledio-devices/thirdparty-tinyexpr.git
				synced 2025-10-31 00:32:38 +01:00 
			
		
		
		
	Changed the way POW_FROM_RIGHT works with negative constants.
This commit is contained in:
		| @@ -384,11 +384,9 @@ static te_expr *factor(state *s) { | ||||
|  | ||||
|     if (ret->type == (TE_FUNCTION1 | TE_FLAG_PURE) && ret->function == negate) { | ||||
|         te_expr *se = ret->parameters[0]; | ||||
|         if (se->type != TE_CONSTANT) { | ||||
|             free(ret); | ||||
|             ret = se; | ||||
|             neg = 1; | ||||
|         } | ||||
|         free(ret); | ||||
|         ret = se; | ||||
|         neg = 1; | ||||
|     } | ||||
|  | ||||
|     while (s->type == TOK_INFIX && (s->function == pow)) { | ||||
|   | ||||
		Reference in New Issue
	
	Block a user