From 303c04109b9044715c2f0b7e8cd9f18027ee7d5f Mon Sep 17 00:00:00 2001 From: Sebastian Hahn Date: Thu, 24 Feb 2011 07:19:09 +0100 Subject: [PATCH] Fix a couple of compile warnings on OS X 10.6 --- src/or/status.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/or/status.c b/src/or/status.c index 36b3f7b1f5..054567f4b7 100644 --- a/src/or/status.c +++ b/src/or/status.c @@ -33,8 +33,8 @@ static char * secs_to_uptime(long secs) { long int days = secs / 86400; - int hours = (secs - (days * 86400)) / 3600; - int minutes = (secs - (days * 86400) - (hours * 3600)) / 60; + int hours = (int)((secs - (days * 86400)) / 3600); + int minutes = (int)((secs - (days * 86400) - (hours * 3600)) / 60); char *uptime_string = NULL; switch (days) {