diff options
Diffstat (limited to 'examples/tree-custom-sort.cxx')
| -rw-r--r-- | examples/tree-custom-sort.cxx | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/examples/tree-custom-sort.cxx b/examples/tree-custom-sort.cxx index 40571f513..5f14946ee 100644 --- a/examples/tree-custom-sort.cxx +++ b/examples/tree-custom-sort.cxx @@ -29,7 +29,7 @@ Fl_Tree *G_tree = 0; // Resort the tree void MySortCallback(Fl_Widget*, void *data) { - int dir = int(long(data)); // forward or reverse + int dir = int(fl_intptr_t(data)); // forward or reverse Fl_Tree_Item *i = G_tree->root(); // Bubble sort for ( int ax=0; ax<i->children(); ax++ ) { |
