summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAlbrecht Schlosser <albrechts.fltk@online.de>2015-04-03 10:57:33 +0000
committerAlbrecht Schlosser <albrechts.fltk@online.de>2015-04-03 10:57:33 +0000
commite11571a3738c42f29d5f397e3eb23802928b0a39 (patch)
tree8a4560fe2d46cc788a3ae2e3bdfa88d60987dd6a
parent3bbfe90dd2d84acb6331d78041494f91ff7a9ab5 (diff)
Fix compiler warning on Windows 64-bit (STR #2813).
Thanks to Csaba for finding this and providing a patch. git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@10664 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
-rw-r--r--FL/glut.H6
1 files changed, 1 insertions, 5 deletions
diff --git a/FL/glut.H b/FL/glut.H
index 12efc19a5..bb83c30ba 100644
--- a/FL/glut.H
+++ b/FL/glut.H
@@ -233,11 +233,7 @@ FL_EXPORT void glutIdleFunc(void (*f)());
// Warning: this cast may not work on all machines:
inline void glutTimerFunc(unsigned int msec, void (*f)(int), int value) {
-#if defined(__LP64__)
- Fl::add_timeout(msec*.001, (void (*)(void *))f, (void *) (long long) value);
-#else
- Fl::add_timeout(msec*.001, (void (*)(void *))f, (void *)value);
-#endif
+ Fl::add_timeout(msec*.001, (void (*)(void *))f, (void *)(fl_intptr_t)value);
}
inline void glutMenuStateFunc(void (*f)(int state)) {