aboutsummaryrefslogtreecommitdiffhomepage
path: root/test
diff options
context:
space:
mode:
authorGravatar Craig Tiller <craig.tiller@gmail.com>2015-12-22 14:17:15 -0800
committerGravatar Craig Tiller <craig.tiller@gmail.com>2015-12-22 14:17:15 -0800
commit0b96edc3ed4e370e77c31429a10fe83912e0a292 (patch)
treede638d5901915f1a02ad6019d5d4f03ef82e9319 /test
parent7536af02cf218f8dcb1368bec6d86c65db95c9b4 (diff)
Fix time_test.c
Diffstat (limited to 'test')
-rw-r--r--test/core/support/time_test.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/test/core/support/time_test.c b/test/core/support/time_test.c
index b921052e7b..fc26f94d29 100644
--- a/test/core/support/time_test.c
+++ b/test/core/support/time_test.c
@@ -49,7 +49,7 @@ static void to_fp(void *arg, const char *buf, size_t len) {
/* Convert gpr_uintmax x to ascii base b (2..16), and write with
(*writer)(arg, ...), zero padding to "chars" digits). */
-static void u_to_s(gpr_uintmax x, unsigned base, int chars,
+static void u_to_s(uintmax_t x, unsigned base, int chars,
void (*writer)(void *arg, const char *buf, size_t len),
void *arg) {
char buf[64];
@@ -64,14 +64,14 @@ static void u_to_s(gpr_uintmax x, unsigned base, int chars,
/* Convert gpr_intmax x to ascii base b (2..16), and write with
(*writer)(arg, ...), zero padding to "chars" digits). */
-static void i_to_s(gpr_intmax x, unsigned base, int chars,
+static void i_to_s(intmax_t x, unsigned base, int chars,
void (*writer)(void *arg, const char *buf, size_t len),
void *arg) {
if (x < 0) {
(*writer)(arg, "-", 1);
- u_to_s((gpr_uintmax)-x, base, chars - 1, writer, arg);
+ u_to_s((uintmax_t)-x, base, chars - 1, writer, arg);
} else {
- u_to_s((gpr_uintmax)x, base, chars, writer, arg);
+ u_to_s((uintmax_t)x, base, chars, writer, arg);
}
}