diff options
| -rw-r--r-- | test/arc.cxx | 2 | ||||
| -rw-r--r-- | test/curve.cxx | 4 |
2 files changed, 5 insertions, 1 deletions
diff --git a/test/arc.cxx b/test/arc.cxx index 2f2d3a3c9..699be6b7b 100644 --- a/test/arc.cxx +++ b/test/arc.cxx @@ -75,7 +75,7 @@ int main(int argc, char** argv) { 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); diff --git a/test/curve.cxx b/test/curve.cxx index a1b0a4264..42e93196e 100644 --- a/test/curve.cxx +++ b/test/curve.cxx @@ -91,7 +91,11 @@ int main(int argc, char** argv) { 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); |
