From b7d12d8ab509fcfc76f82d748afae92139a76548 Mon Sep 17 00:00:00 2001 From: "miloyip@gmail.com" Date: Thu, 15 Nov 2012 03:01:17 +0000 Subject: [PATCH] Fixed Issue 48: incorrect return type of GetUint64() git-svn-id: https://rapidjson.googlecode.com/svn/trunk@86 c5894555-1306-4e8d-425f-1f6f381ee07c --- include/rapidjson/document.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/include/rapidjson/document.h b/include/rapidjson/document.h index da3a826..2a602ee 100644 --- a/include/rapidjson/document.h +++ b/include/rapidjson/document.h @@ -448,7 +448,7 @@ int z = a[0u].GetInt(); // This works too. int GetInt() const { RAPIDJSON_ASSERT(flags_ & kIntFlag); return data_.n.i.i; } unsigned GetUint() const { RAPIDJSON_ASSERT(flags_ & kUintFlag); return data_.n.u.u; } int64_t GetInt64() const { RAPIDJSON_ASSERT(flags_ & kInt64Flag); return data_.n.i64; } - int64_t GetUint64() const { RAPIDJSON_ASSERT(flags_ & kInt64Flag); return data_.n.u64; } + uint64_t GetUint64() const { RAPIDJSON_ASSERT(flags_ & kInt64Flag); return data_.n.u64; } double GetDouble() const { RAPIDJSON_ASSERT(IsNumber());