mirror of
https://github.com/cesanta/mongoose.git
synced 2026-10-26 12:14:56 +00:00
Stricter checks for mg_url_*()
This commit is contained in:
1 parent
0ae5c61759
commit
e9d122f231
6 files changed
+26
-12
No files matched your search
+1
-1
@@ -332,6 +332,6 @@ unsigned long mg_millis(void) {
|
||||
#else
|
||||
struct timespec ts;
|
||||
clock_gettime(CLOCK_REALTIME, &ts);
|
||||
return ts.tv_sec * 1000 + ts.tv_nsec / 1000000;
|
||||
return (unsigned long) ((uint64_t) ts.tv_sec * 1000 + ts.tv_nsec / 1000000);
|
||||
#endif
|
||||
}
|
||||
Reference in new issue
Block a user