Sophie

Sophie

distrib > Mandriva > current > i586 > media > contrib-release-src > by-pkgid > 87b6557e2cea541596ecc1d73676b4e2 > files > 1

xdiskusage-1.48-6mdv2010.1.src.rpm

--- xdiskusage-1.48/xdiskusage.C	2004-09-20 22:23:14.000000000 -0700
+++ xdiskusage-1.48/xdiskusage.C.new	2007-07-20 13:25:29.000000000 -0700
@@ -988,7 +988,7 @@ Node* OutputWindow::sort(Node* n, int (*
 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::sort_cb(Fl_Widget* o,
 
 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) {