diff options
author | Dirk Hohndel <dirk@hohndel.org> | 2016-03-09 18:59:26 -0800 |
---|---|---|
committer | Dirk Hohndel <dirk@hohndel.org> | 2016-03-09 21:47:28 -0800 |
commit | 349c27a96eb2731a697da5b4a50fe6c9ca7a0dd0 (patch) | |
tree | 10f51ac81f2e96ae56125f85a42d2ddc81afdf83 /subsurface-core/time.c | |
parent | c63f14eefcf7aff08c28bb709a9fccff37f3c6bf (diff) | |
download | subsurface-349c27a96eb2731a697da5b4a50fe6c9ca7a0dd0.tar.gz |
Clean up signedness confusion in time.c
Signed-off-by: Dirk Hohndel <dirk@hohndel.org>
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)); |