Fix "Support for NetBSD", part 4 (#944)
Add missing return statement to replacement function for trunc(). Closes #944
This commit is contained in:
parent
feec8f9fb1
commit
5de880ae81
@ -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
|
||||
|
||||
/**
|
||||
|
Loading…
Reference in New Issue
Block a user