---
 src/gtk/fm-folder-model.c |    9 +++++++--
 1 files changed, 7 insertions(+), 2 deletions(-)

diff --git a/src/gtk/fm-folder-model.c b/src/gtk/fm-folder-model.c
index f0a26e6..7526ab7 100644
--- a/src/gtk/fm-folder-model.c
+++ b/src/gtk/fm-folder-model.c
@@ -693,10 +693,15 @@ _sort_by_name:
         break;
     }
     case COL_FILE_SIZE:
-        ret = file1->size - file2->size;
-        if(0 == ret)
+    {
+        /* to support files more than 2Gb */
+        goffset diff = file1->size - file2->size;
+        if(0 == diff)
             goto _sort_by_name;
+        else
+            ret = diff > 0 ? 1 : -1;
         break;
+    }
     case COL_FILE_MTIME:
         ret = file1->mtime - file2->mtime;
         if(0 == ret)
-- 
1.7.1


------------------------------------------------------------------------------
ThinkGeek and WIRED's GeekDad team up for the Ultimate 
GeekDad Father's Day Giveaway. ONE MASSIVE PRIZE to the 
lucky parental unit.  See the prize list and enter to win: 
http://p.sf.net/sfu/thinkgeek-promo
_______________________________________________
Pcmanfm-develop mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/pcmanfm-develop

Reply via email to