From 26d98ca94f2f049e8767b4a9a33d185a3d7ea0fd Mon Sep 17 00:00:00 2001 From: Josh Haberman Date: Thu, 24 Oct 2013 12:43:19 -0700 Subject: 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. --- tests/test_varint.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'tests/test_varint.c') 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 -#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); -- cgit v1.2.3