From f6f9a1e87e9a2ade69cc2df8eb4562dbc1a71937 Mon Sep 17 00:00:00 2001 From: Sascha Wildner Date: Tue, 9 Jul 2013 22:55:16 +0200 Subject: [PATCH] installer: Cast to int64_t for i386. --- usr.sbin/installer/libinstaller/functions.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/usr.sbin/installer/libinstaller/functions.c b/usr.sbin/installer/libinstaller/functions.c index 2b1a4a4061..034f2f67aa 100644 --- a/usr.sbin/installer/libinstaller/functions.c +++ b/usr.sbin/installer/libinstaller/functions.c @@ -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); -- 2.41.0