aboutsummaryrefslogtreecommitdiff
path: root/src/or/status.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/or/status.c')
-rw-r--r--src/or/status.c4
1 files 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) {