mirror of
https://github.com/eledio-devices/thirdparty-tinyexpr.git
synced 2025-11-01 00:38:28 +01:00
Bug fix.
This commit is contained in:
2
test.c
2
test.c
@@ -382,7 +382,7 @@ void test_dynamic() {
|
|||||||
const double answer = cases[i].answer;
|
const double answer = cases[i].answer;
|
||||||
|
|
||||||
int err;
|
int err;
|
||||||
te_expr *ex = te_compile(expr, lookup, sizeof(lookup), &err);
|
te_expr *ex = te_compile(expr, lookup, sizeof(lookup)/sizeof(te_variable), &err);
|
||||||
lok(ex);
|
lok(ex);
|
||||||
lfequal(te_eval(ex), answer);
|
lfequal(te_eval(ex), answer);
|
||||||
te_free(ex);
|
te_free(ex);
|
||||||
|
|||||||
Reference in New Issue
Block a user