FLTK logo

[master] 5de880a - Fix "Support for NetBSD", part 4 (#944)

FLTK matrix user chat room
(using Element browser app)   FLTK gitter user chat room   GitHub FLTK Project   FLTK News RSS Feed  
  FLTK Apps      FLTK Library      Forums      Links     Login 
 All Forums  |  Back to fltk.commit  ]
 
Previous Message ]Next Message ]

[master] 5de880a - Fix "Support for NetBSD", part 4 (#944) "Albrecht Schlosser" 04:32 Apr 12  
 
commit 5de880ae810f7790d888d52a1accbafb0607bf0f
Author:     Albrecht Schlosser <albrechts.fltk@online.de>
AuthorDate: Fri Apr 12 13:28:33 2024 +0200
Commit:     Albrecht Schlosser <albrechts.fltk@online.de>
CommitDate: Fri Apr 12 13:28:33 2024 +0200

    Fix "Support for NetBSD", part 4 (#944)
    
    Add missing return statement to replacement function for trunc().
    
    Closes #944

 src/Fl_Timeout.cxx | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git src/Fl_Timeout.cxx src/Fl_Timeout.cxx
index 921c40c..3c04cae 100644
--- src/Fl_Timeout.cxx
+++ src/Fl_Timeout.cxx
@@ -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
 
 /**
Direct Link to Message ]
 
     
Previous Message ]Next Message ]
 
 

Comments are owned by the poster. All other content is copyright 1998-2024 by Bill Spitzak and others. This project is hosted by The FLTK Team. Please report site problems to 'erco@seriss.com'.