Skip to content
Snippets Groups Projects
Commit 6ba50fde authored by Nicolas "Pixel" Noble's avatar Nicolas "Pixel" Noble
Browse files

Fixing time.c for win32 - MIN_INT can't work with 0x80000000 under win32.

parent 3eb079dc
No related branches found
No related tags found
No related merge requests found
...@@ -259,7 +259,7 @@ gpr_int32 gpr_time_to_millis(gpr_timespec t) { ...@@ -259,7 +259,7 @@ gpr_int32 gpr_time_to_millis(gpr_timespec t) {
} else if (t.tv_sec <= -2147483) { } else if (t.tv_sec <= -2147483) {
/* TODO(ctiller): correct handling here (it's so far in the past do we /* TODO(ctiller): correct handling here (it's so far in the past do we
care?) */ care?) */
return -2147483648; return -2147483647;
} else { } else {
return t.tv_sec * GPR_MS_PER_SEC + t.tv_nsec / GPR_NS_PER_MS; return t.tv_sec * GPR_MS_PER_SEC + t.tv_nsec / GPR_NS_PER_MS;
} }
......
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