From 349c27a96eb2731a697da5b4a50fe6c9ca7a0dd0 Mon Sep 17 00:00:00 2001 From: Dirk Hohndel Date: Wed, 9 Mar 2016 18:59:26 -0800 Subject: Clean up signedness confusion in time.c Signed-off-by: Dirk Hohndel --- subsurface-core/time.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'subsurface-core/time.c') diff --git a/subsurface-core/time.c b/subsurface-core/time.c index b658954bc..0893f19d8 100644 --- a/subsurface-core/time.c +++ b/subsurface-core/time.c @@ -11,16 +11,16 @@ */ void utc_mkdate(timestamp_t timestamp, struct tm *tm) { - static const int mdays[] = { + static const unsigned int mdays[] = { 31, 28, 31, 30, 31, 30, 31, 31, 30, 31, 30, 31, }; - static const int mdays_leap[] = { + static const unsigned int mdays_leap[] = { 31, 29, 31, 30, 31, 30, 31, 31, 30, 31, 30, 31, }; unsigned long val; unsigned int leapyears; int m; - const int *mp; + const unsigned int *mp; memset(tm, 0, sizeof(*tm)); -- cgit v1.2.3-70-g09d2