Skip to content

Commit 6617027

Browse files
committed
Fixed warning when compiling with strict prototypes
1 parent 9476568 commit 6617027

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

tinyexpr.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -117,8 +117,8 @@ void te_free(te_expr *n) {
117117
}
118118

119119

120-
static double pi() {return 3.14159265358979323846;}
121-
static double e() {return 2.71828182845904523536;}
120+
static double pi(void) {return 3.14159265358979323846;}
121+
static double e(void) {return 2.71828182845904523536;}
122122
static double fac(double a) {/* simplest version of fac */
123123
if (a < 0.0)
124124
return NAN;

0 commit comments

Comments
 (0)