Fix "Support for NetBSD", part 4 (#944)

Add missing return statement to replacement function for trunc().

Closes #944
This commit is contained in:
Albrecht Schlosser 2024-04-12 13:28:33 +02:00
parent feec8f9fb1
commit 5de880ae81

View File

@ -24,7 +24,7 @@
#include <math.h> // for trunc()
#if !HAVE_TRUNC
static inline double trunc(double x) { x >= 0 ? floor(x) : ceil(x); }
static inline double trunc(double x) { return x >= 0 ? floor(x) : ceil(x); }
#endif // !HAVE_TRUNC
/**