From 493db02bdbc6ec667cd04e75a77dff8366ec1bc0 Mon Sep 17 00:00:00 2001 From: Eric Koegel Date: Sun, 06 Nov 2011 13:58:33 +0000 Subject: Fix sorting of filenames with large numbers (bug #5356). Change compare_by_name_using_number() to use guint64. Signed-off-by: Jannis Pohlmann --- diff --git a/thunar/thunar-file.c b/thunar/thunar-file.c index 909da25..44cdb31 100644 --- a/thunar/thunar-file.c +++ b/thunar/thunar-file.c @@ -3168,12 +3168,12 @@ static gint compare_by_name_using_number (const gchar *ap, const gchar *bp) { - guint anum; - guint bnum; + guint64 anum; + guint64 bnum; /* determine the numbers in ap and bp */ - anum = strtoul (ap, NULL, 10); - bnum = strtoul (bp, NULL, 10); + anum = strtouq (ap, NULL, 10); + bnum = strtouq (bp, NULL, 10); /* compare the numbers */ if (anum < bnum) -- cgit v0.9.0.2