--- xdiskusage-1.48.original/xdiskusage.C 2006-09-21 12:03:32.000000000 +0000 +++ xdiskusage-1.48/xdiskusage.C 2006-09-21 12:10:17.000000000 +0000 @@ -510,7 +510,7 @@ ulong size = strtoul(buffer, &p, 10); if (!isspace(*p) || p == buffer) { if (!*p || *p=='#') continue; // ignore blank lines or comments (?) - fl_alert("%s:%d: does not look like du output: %s", path, line_no, p); + fl_alert("%s:%d: does not look like du output: %s", path, (int)line_no, p); cancelled = 1; continue; } @@ -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 int)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; + int n = (long int)v; ::ncols = n; if (n == d->ncols) return; if (d->current_depth > d->root_depth+n-1) {