mirror of
https://github.com/subsurface/subsurface.git
synced 2025-02-19 22:16:15 +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)
|
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,
|
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,
|
31, 29, 31, 30, 31, 30, 31, 31, 30, 31, 30, 31,
|
||||||
};
|
};
|
||||||
unsigned long val;
|
unsigned long val;
|
||||||
unsigned int leapyears;
|
unsigned int leapyears;
|
||||||
int m;
|
int m;
|
||||||
const int *mp;
|
const unsigned int *mp;
|
||||||
|
|
||||||
memset(tm, 0, sizeof(*tm));
|
memset(tm, 0, sizeof(*tm));
|
||||||
|
|
||||||
|
|
Loading…
Add table
Reference in a new issue