From 6ba50fde9cafa22640ecac28c91d241a55c6dce9 Mon Sep 17 00:00:00 2001
From: "Nicolas \"Pixel\" Noble" <nicolas@nobis-crew.org>
Date: Tue, 13 Jan 2015 19:25:37 -0800
Subject: [PATCH] Fixing time.c for win32 - MIN_INT can't work with 0x80000000
 under win32.

---
 src/core/support/time.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

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;
   }
-- 
GitLab