aboutsummaryrefslogtreecommitdiffhomepage
path: root/src/core/support
diff options
context:
space:
mode:
authorGravatar Nicolas "Pixel" Noble <nicolas@nobis-crew.org>2015-01-13 19:25:37 -0800
committerGravatar Nicolas "Pixel" Noble <nicolas@nobis-crew.org>2015-01-13 19:25:37 -0800
commit6ba50fde9cafa22640ecac28c91d241a55c6dce9 (patch)
tree568ddad51bc344c82c4c4f34f0213e1de9a3ba5d /src/core/support
parent3eb079dcad14ab69d589b4e3daec62cd99d602dd (diff)
Fixing time.c for win32 - MIN_INT can't work with 0x80000000 under win32.
Diffstat (limited to 'src/core/support')
-rw-r--r--src/core/support/time.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/core/support/time.c b/src/core/support/time.c
index 0e88c65be0..97243318fd 100644
--- a/src/core/support/time.c
+++ b/src/core/support/time.c
@@ -259,7 +259,7 @@ gpr_int32 gpr_time_to_millis(gpr_timespec t) {
} else if (t.tv_sec <= -2147483) {
/* TODO(ctiller): correct handling here (it's so far in the past do we
care?) */
- return -2147483648;
+ return -2147483647;
} else {
return t.tv_sec * GPR_MS_PER_SEC + t.tv_nsec / GPR_NS_PER_MS;
}