mirror of
https://github.com/subsurface/subsurface.git
synced 2024-11-30 22:20:21 +00:00
Clean up signedness confusion in time.c
Signed-off-by: Dirk Hohndel <dirk@hohndel.org>
This commit is contained in:
parent
c63f14eefc
commit
349c27a96e
1 changed files with 3 additions and 3 deletions
|
@ -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));
|
||||
|
||||
|
|
Loading…
Reference in a new issue