Skip to content

Commit c9517c8

Browse files
authored
Merge pull request #36 from EvilPudding/master
Fixed warning when compiling with strict prototypes
2 parents 9476568 + 6617027 commit c9517c8

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)