mirror of
				https://github.com/eledio-devices/thirdparty-tinyexpr.git
				synced 2025-10-31 16:14:16 +01:00 
			
		
		
		
	Closure bug fix.
This commit is contained in:
		| @@ -404,7 +404,7 @@ double te_eval_closure(const te_expr *n, void *context) { | |||||||
|     if (!n) return 0.0/0.0; |     if (!n) return 0.0/0.0; | ||||||
|  |  | ||||||
| #define TE_FUN(...) ((double(*)(__VA_ARGS__))n->function) | #define TE_FUN(...) ((double(*)(__VA_ARGS__))n->function) | ||||||
| #define M(e) te_eval(n->parameters[e]) | #define M(e) te_eval_closure(n->parameters[e], context) | ||||||
|  |  | ||||||
|     switch(n->type) { |     switch(n->type) { | ||||||
|         case TE_CONSTANT: return n->value; |         case TE_CONSTANT: return n->value; | ||||||
|   | |||||||
		Reference in New Issue
	
	Block a user