summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJonathan Schleifer <js@heap.zone>2018-05-21 18:14:38 +0200
committerJonathan Schleifer <js@heap.zone>2018-05-21 18:14:38 +0200
commitcf208b635046aac6137ee964e4d2054ccb3e5fae (patch)
tree88382154ac4000539e042f85fed0dafc9d1be50b
parent3f57dd6331419aa08d1b954fd58156b07a961409 (diff)
OFDate: Avoid useless float -> double cast
-rw-r--r--src/OFDate.m2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/OFDate.m b/src/OFDate.m
index ef271d97..453cb837 100644
--- a/src/OFDate.m
+++ b/src/OFDate.m
@@ -173,7 +173,7 @@ tmAndTzToTime(struct tm *tm, int16_t *tz)
/* Seconds */
seconds += tm->tm_sec;
/* Time zone */
- seconds += -(float)*tz * 60;
+ seconds += -(double)*tz * 60;
return seconds;
}