Skip to content

Commit

Permalink
Fix "Support for NetBSD", part 4 (#944)
Browse files Browse the repository at this point in the history
Add missing return statement to replacement function for trunc().

Closes #944
  • Loading branch information
Albrecht Schlosser committed Apr 12, 2024
1 parent feec8f9 commit 5de880a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/Fl_Timeout.cxx
Original file line number Diff line number Diff line change
Expand Up @@ -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

/**
Expand Down

0 comments on commit 5de880a

Please sign in to comment.