diff options
| author | Albrecht Schlosser <albrechts.fltk@online.de> | 2014-10-15 12:36:26 +0000 |
|---|---|---|
| committer | Albrecht Schlosser <albrechts.fltk@online.de> | 2014-10-15 12:36:26 +0000 |
| commit | de1d03cd52b5b127ed6cc43d9ddb197b65b21094 (patch) | |
| tree | faf6fe94b89dfaa7b29f9dd57e51cc688037b8b8 /fluid | |
| parent | 8c91c679e00106a34e7dfdaf49ad6eb70187de05 (diff) | |
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
Diffstat (limited to 'fluid')
| -rw-r--r-- | fluid/file.cxx | 2 |
1 files changed, 1 insertions, 1 deletions
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; } |
