diff options
author | Josh Haberman <jhaberman@gmail.com> | 2013-10-24 12:43:19 -0700 |
---|---|---|
committer | Josh Haberman <jhaberman@gmail.com> | 2013-10-24 12:43:19 -0700 |
commit | 26d98ca94f2f049e8767b4a9a33d185a3d7ea0fd (patch) | |
tree | 340bcf495f06ed05c9f3fb423f210caf4edce2b1 /tests/test_varint.c | |
parent | 61109fca1f967771c21dc7184aee35f3b439c577 (diff) |
Merge from Google-internal development:
- rewritten decoder; interpreted decoder is bytecode-based,
JIT decoder no longer falls back to the interpreter.
- C++ improvements: C++11-compatible iterators, upb::reffed_ptr
for RAII refcounting, better upcast/downcast support.
- removed the gross upb_value abstraction from public upb.h.
Diffstat (limited to 'tests/test_varint.c')
-rw-r--r-- | tests/test_varint.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/tests/test_varint.c b/tests/test_varint.c index bdbc573..fc7eb40 100644 --- a/tests/test_varint.c +++ b/tests/test_varint.c @@ -5,7 +5,7 @@ */ #include <stdio.h> -#include "upb/pb/varint.h" +#include "upb/pb/varint.int.h" #include "upb_test.h" // Test that we can round-trip from int->varint->int. @@ -66,7 +66,7 @@ static void test_varint_decoder(upb_decoderet (*decoder)(const char*)) { ASSERT(r.p == NULL); - for (uint64_t num = 5; num * 1.5 > num; num *= 1.5) { + for (uint64_t num = 5; num * 1.5 < UINT64_MAX; num *= 1.5) { test_varint_for_num(decoder, num); } test_varint_for_num(decoder, 0); |