From 83d1371953e889bb54826ea78bbb7b44da303cd1 Mon Sep 17 00:00:00 2001 From: Mike McCormack Date: Thu, 31 Jan 2013 03:31:03 +0000 Subject: [PATCH] terminology: Fix warning Signed-off-by: Mike McCormack SVN revision: 83499 --- src/bin/tyls.c | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/src/bin/tyls.c b/src/bin/tyls.c index f1e75609..90b46cf1 100644 --- a/src/bin/tyls.c +++ b/src/bin/tyls.c @@ -154,12 +154,12 @@ list_dir(const char *dir, int mode) snprintf(sz, sizeof(sz), "%4lldK", size / (1024)); else if (size < (1024 * 1024 * 1024)) snprintf(sz, sizeof(sz), "%4lldM", size / (1024 * 1024)); - else if (size < (1024 * 1024 * 1024 * 1024)) - snprintf(sz, sizeof(sz), "%4lldG", size / (1024 * 1024 * 1024)); - else if (size < (1024 * 1024 * 1024 * 1024 * 1024)) - snprintf(sz, sizeof(sz), "%4lldT", size / (1024 * 1024 * 1024 * 1024)); - else if (size < (1024 * 1024 * 1024 * 1024 * 1024 * 1024)) - snprintf(sz, sizeof(sz), "%4lldP", size / (1024 * 1024 * 1024 * 1024 * 1024)); + else if (size < (1024 * 1024 * 1024 * 1024LL)) + snprintf(sz, sizeof(sz), "%4lldG", size / (1024 * 1024 * 1024LL)); + else if (size < (1024 * 1024 * 1024 * 1024LL * 1024LL)) + snprintf(sz, sizeof(sz), "%4lldT", size / (1024 * 1024 * 1024 * 1024LL)); + else if (size < (1024 * 1024 * 1024 * 1024LL * 1024LL * 1024LL)) + snprintf(sz, sizeof(sz), "%4lldP", size / (1024 * 1024 * 1024 * 1024LL * 1024LL)); len += stuff; printf("%c}ic#%i;%i;%s%c", 0x1b, 2, 1, buf, 0); printf("%c}ib%c", 0x1b, 0);