From 961eb9f003f1592273cab4339cf6601718cde4d4 Mon Sep 17 00:00:00 2001 From: Eric Koegel Date: Sun, 6 Nov 2011 13:23:37 +0300 Subject: [PATCH] Changed compare_by_name_using_number to use guint64 when available to work with files that have very large numbers --- thunar/thunar-file.c | 9 +++++++++ 1 files changed, 9 insertions(+), 0 deletions(-) diff --git a/thunar/thunar-file.c b/thunar/thunar-file.c index 9e5393c..485279a 100644 --- a/thunar/thunar-file.c +++ b/thunar/thunar-file.c @@ -3177,12 +3177,21 @@ static gint compare_by_name_using_number (const gchar *ap, const gchar *bp) { +#ifndef G_HAVE_GINT64 guint anum; guint bnum; /* determine the numbers in ap and bp */ anum = strtoul (ap, NULL, 10); bnum = strtoul (bp, NULL, 10); +#else + guint64 anum; + guint64 bnum; + + /* determine the numbers in ap and bp */ + anum = strtouq (ap, NULL, 10); + bnum = strtouq (bp, NULL, 10); +#endif /* compare the numbers */ if (anum < bnum) -- 1.7.5.4