From 0693ffb82b870813970292c6f4e449eba2ab90b8 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?S=C3=A9bastien=20Helleu?= Date: Fri, 25 Jul 2014 22:23:46 +0200 Subject: core: fix compilation warning on GNU/Hurd about unsigned long numbers --- src/core/wee-string.c | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/src/core/wee-string.c b/src/core/wee-string.c index 72e7dd6ac..b6ee3ee40 100644 --- a/src/core/wee-string.c +++ b/src/core/wee-string.c @@ -2295,13 +2295,13 @@ string_format_size (unsigned long long size) str_size[0] = '\0'; - if (size < 10L * 1000L) + if (size < 10UL * 1000UL) num_unit = 0; - else if (size < 1000L * 1000L) + else if (size < 1000UL * 1000UL) num_unit = 1; - else if (size < 1000L * 1000L * 1000L) + else if (size < 1000UL * 1000UL * 1000UL) num_unit = 2; - else if (size < 1000L * 1000L * 1000L * 1000L) + else if (size < 1000UL * 1000UL * 1000UL * 1000UL) num_unit = 3; else num_unit = 4; -- cgit v1.2.3