From e895cef2451318534ce156131d4d8fe169d51345 Mon Sep 17 00:00:00 2001 From: Fabian Homborg Date: Wed, 29 May 2019 20:23:56 +0200 Subject: [PATCH] tinyexpr: Correct pi type --- src/tinyexpr.cpp | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/src/tinyexpr.cpp b/src/tinyexpr.cpp index f54b38d0f..c0a492c68 100644 --- a/src/tinyexpr.cpp +++ b/src/tinyexpr.cpp @@ -72,7 +72,6 @@ typedef struct te_expr { te_expr *parameters[]; } te_expr; -// TODO: Rename since variables have been removed. typedef struct te_builtin { const char *name; const void *address; @@ -185,7 +184,7 @@ static const te_builtin functions[] = { {"log10", (const void *)(te_fun1)log10, TE_FUNCTION1}, {"ncr", (const void *)(te_fun2)ncr, TE_FUNCTION2}, {"npr", (const void *)(te_fun2)npr, TE_FUNCTION2}, - {"pi", (const void *)(te_fun1)pi, TE_FUNCTION0}, + {"pi", (const void *)(te_fun0)pi, TE_FUNCTION0}, {"pow", (const void *)(te_fun2)pow, TE_FUNCTION2}, {"round", (const void *)(te_fun1)round, TE_FUNCTION1}, {"sin", (const void *)(te_fun1)sin, TE_FUNCTION1},