diff options
Diffstat (limited to 'subsurface-core/time.c')
-rw-r--r-- | subsurface-core/time.c | 6 |
1 files changed, 3 insertions, 3 deletions
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)); |