xdiskusage (1.48-10) 03_xdiskusage.C_amd64-gcc4.patch

Summary

 xdiskusage.C |    4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

    
download this patch

Patch contents

Author: Randrianiriana Thierry <randrianiriana@gmail.com>
Description: see bug #297845
--- xdiskusage-1.48.orig/xdiskusage.C
+++ xdiskusage-1.48/xdiskusage.C
@@ -988,7 +988,7 @@
 void OutputWindow::sort_cb(Fl_Widget* o, void*v) {
   OutputWindow* d = (OutputWindow*)(o->window());
   int (*compare)(const Node*, const Node*);
-  switch ((int)v) {
+  switch ((long)v) {
   case 's': compare = largestfirst; break;
   case 'r': compare = smallestfirst; break;
   case 'a': compare = alphabetical; break;
@@ -1001,7 +1001,7 @@
 
 void OutputWindow::columns_cb(Fl_Widget* o, void*v) {
   OutputWindow* d = (OutputWindow*)(o->window());
-  int n = (int)v;
+  long n = (long)v;
   ::ncols = n;
   if (n == d->ncols) return;
   if (d->current_depth > d->root_depth+n-1) {