Skip to content
Snippets Groups Projects
Commit e11e96c7 authored by Rob Swindell's avatar Rob Swindell :speech_balloon: Committed by Deucе
Browse files

Move the comment about mktime() usage back to where it makes sense :-)

parent c30c6917
No related branches found
No related tags found
No related merge requests found
......@@ -81,10 +81,10 @@ time32_t time32(time32_t* tp)
time32_t mktime32(struct tm* tm)
{
time_t t = mktime(tm);
time_t t = mktime(tm); /* don't use sane_mktime since tm->tm_mon is assumed to be already zero-based */
/* coverity[store_truncates_time_t] */
uint32_t t32 = (uint32_t)t;
return (time32_t)t32; /* don't use sane_mktime since tm->tm_mon is assumed to be already zero-based */
return (time32_t)t32;
}
struct tm* localtime32(const time32_t* t32, struct tm* tm)
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment