[winpr,timezone] fix missing const

This commit is contained in:
Armin Novak 2024-05-08 14:29:36 +02:00 committed by akallabeth
parent 95a7f5019a
commit 474e3fa983
1 changed files with 2 additions and 2 deletions

View File

@ -355,10 +355,10 @@ static SYSTEMTIME tm2systemtime(const struct tm* t)
return st;
}
static LONG get_gmtoff_min(struct tm* t)
static LONG get_gmtoff_min(const struct tm* t)
{
WINPR_ASSERT(t);
return -t->tm_gmtoff / 60l;
return -(LONG)(t->tm_gmtoff / 60l);
}
static struct tm next_day(const struct tm* start)