Author: fabien
Date: 2012-04-23 19:06:52 -0700 (Mon, 23 Apr 2012)
New Revision: 9392
Log:
removed more 64 bits warning in curve/arc demos
Modified:
branches/branch-1.3/test/arc.cxx
branches/branch-1.3/test/curve.cxx
Modified: branches/branch-1.3/test/arc.cxx
===================================================================
--- branches/branch-1.3/test/arc.cxx 2012-04-24 02:03:10 UTC (rev 9391)
+++ branches/branch-1.3/test/arc.cxx 2012-04-24 02:06:52 UTC (rev 9392)
@@ -75,7 +75,7 @@
s->step(1);
s->value(args[n]);
s->align(FL_ALIGN_LEFT);
-#if __LP64__
+#ifdef __LP64__
s->callback(slider_cb, (void*)(long long) n);
#else
s->callback(slider_cb, (void*) n);
Modified: branches/branch-1.3/test/curve.cxx
===================================================================
--- branches/branch-1.3/test/curve.cxx 2012-04-24 02:03:10 UTC (rev 9391)
+++ branches/branch-1.3/test/curve.cxx 2012-04-24 02:06:52 UTC (rev 9392)
@@ -91,7 +91,11 @@
s->step(1);
s->value(args[n]);
s->align(FL_ALIGN_LEFT);
+#ifdef __LP64__
+ s->callback(slider_cb, (void*) (long long)n);
+#else
s->callback(slider_cb, (void*)n);
+#endif
}
Fl_Toggle_Button but(50,y,50,25,"points");
but.callback(points_cb);
_______________________________________________
fltk-commit mailing list
[email protected]
http://lists.easysw.com/mailman/listinfo/fltk-commit