summaryrefslogtreecommitdiff
path: root/examples/tree-custom-sort.cxx
diff options
context:
space:
mode:
authorAlbrecht Schlosser <albrechts.fltk@online.de>2016-08-11 12:41:17 +0000
committerAlbrecht Schlosser <albrechts.fltk@online.de>2016-08-11 12:41:17 +0000
commit765919244741b7e768986e46eaed1119fae3af17 (patch)
tree08e0b8c71ec3328d46e85900160d0968d0abd628 /examples/tree-custom-sort.cxx
parente7b9e77ba5ab877eb5f8b56da7fe1bf7b0aac3aa (diff)
Fix one compiler warning and one error on Windows 64-bit.
These warnings and errors were found using gcc 6.1 (64-bit) under Windows. The error in examples/howto-add_fd-and-popen.cxx (-fpermissive) is due to the wrong definition of Fl_FD_Handler under Windows 64-bit (FL_SOCKET!). This should really be fixed in a better way in FLTK 1.4. git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3-porting@11871 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
Diffstat (limited to 'examples/tree-custom-sort.cxx')
-rw-r--r--examples/tree-custom-sort.cxx2
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++ ) {