From e160237a4b2dfc7afa729e81eaa36241d91c6ed7 Mon Sep 17 00:00:00 2001 From: Chris Jefferson Date: Wed, 16 Sep 2015 14:44:47 +0100 Subject: [PATCH] Stop 32-bit pointer extension --- src/gason.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/gason.h b/src/gason.h index 853eeb5..1d62c4d 100644 --- a/src/gason.h +++ b/src/gason.h @@ -29,7 +29,7 @@ union JsonValue { : fval(x) { } JsonValue(JsonTag tag = JSON_NULL, void *payload = nullptr) { - assert((uint64_t)payload <= JSON_VALUE_PAYLOAD_MASK); + assert((uintptr_t)payload <= JSON_VALUE_PAYLOAD_MASK); ival = JSON_VALUE_NAN_MASK | ((uint64_t)tag << JSON_VALUE_TAG_SHIFT) | (uintptr_t)payload; } bool isDouble() const {