diff options
author | Jan Tattermusch <jtattermusch@google.com> | 2016-01-27 13:59:08 -0800 |
---|---|---|
committer | Jan Tattermusch <jtattermusch@google.com> | 2016-01-27 15:26:23 -0800 |
commit | a99687be96200652cf6c8a0559a3e31be022fb7c (patch) | |
tree | 330ec3b9110fbcf1787d8dc04a2b3ce9f5f94a39 /test/core/transport/chttp2 | |
parent | e7780a9c7513eadc46f578d42209a96b92a98215 (diff) |
Fix 32 bit linux tests
Diffstat (limited to 'test/core/transport/chttp2')
-rw-r--r-- | test/core/transport/chttp2/hpack_table_test.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/test/core/transport/chttp2/hpack_table_test.c b/test/core/transport/chttp2/hpack_table_test.c index 39f4174eec..3c5f2e4e31 100644 --- a/test/core/transport/chttp2/hpack_table_test.c +++ b/test/core/transport/chttp2/hpack_table_test.c @@ -1,6 +1,6 @@ /* * - * Copyright 2015, Google Inc. + * Copyright 2015-2016, Google Inc. * All rights reserved. * * Redistribution and use in source and binary forms, with or without @@ -236,7 +236,7 @@ static void test_find(void) { /* overflow the string buffer, check find still works */ for (i = 0; i < 10000; i++) { - gpr_ltoa(i, buffer); + int64_ttoa(i, buffer); elem = grpc_mdelem_from_strings("test", buffer); GPR_ASSERT(grpc_chttp2_hptbl_add(&tbl, elem)); GRPC_MDELEM_UNREF(elem); @@ -256,7 +256,7 @@ static void test_find(void) { for (i = 0; i < tbl.num_ents; i++) { uint32_t expect = 9999 - i; - gpr_ltoa(expect, buffer); + int64_ttoa(expect, buffer); r = find_simple(&tbl, "test", buffer); GPR_ASSERT(r.index == i + 1 + GRPC_CHTTP2_LAST_STATIC_ENTRY); |