installer: Cast to int64_t for i386.
authorSascha Wildner <saw@online.de>
Tue, 9 Jul 2013 20:55:16 +0000 (22:55 +0200)
committerSascha Wildner <saw@online.de>
Tue, 9 Jul 2013 20:55:16 +0000 (22:55 +0200)
usr.sbin/installer/libinstaller/functions.c

index 2b1a4a4..034f2f6 100644 (file)
@@ -247,7 +247,7 @@ capacity_to_string(long capacity)
                strlcpy(string, "*", 2);
        else
                humanize_number(string, sizeof(string),
-                   capacity * 1024 * 1024, "",
+                   (int64_t)capacity * 1024 * 1024, "",
                    HN_AUTOSCALE, HN_B | HN_NOSPACE | HN_DECIMAL);
 
        return(string);