From de1d03cd52b5b127ed6cc43d9ddb197b65b21094 Mon Sep 17 00:00:00 2001 From: Albrecht Schlosser Date: Wed, 15 Oct 2014 12:36:26 +0000 Subject: Fix sporadic floating point value comparison error. I wonder why this did not appear earlier. I found this issue only when compiling with Cygwin under certain circumstances. Error was: Generating tabs.cxx and header from tabs.fl... tabs.fl:2: unknown version '1.0303' although fluid was the one linked under FLTK 1.3.3 in the build process. The fix is to adjust FL_VERSION by a delta value of 0.00001. git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@10380 ea41ed52-d2ee-0310-a9c1-e6b18d33e121 --- fluid/file.cxx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/fluid/file.cxx b/fluid/file.cxx index e2e22c23b..b24cae58f 100644 --- a/fluid/file.cxx +++ b/fluid/file.cxx @@ -379,7 +379,7 @@ static void read_children(Fl_Type *p, int paste) { if (!strcmp(c,"version")) { c = read_word(); read_version = strtod(c,0); - if (read_version<=0 || read_version>FL_VERSION) + if (read_version<=0 || read_version>double(FL_VERSION+0.00001d)) read_error("unknown version '%s'",c); continue; } -- cgit v1.2.3