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

pull/24/head
Nicolas "Pixel" Noble 10 years ago
parent 3eb079dcad
commit 6ba50fde9c
  1. 2
      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;
}

Loading…
Cancel
Save