Skip to content

Commit

Permalink
Merge pull request vivkin#21 from ChrisJefferson/32bitfix
Browse files Browse the repository at this point in the history
Stop 32-bit pointer extension
  • Loading branch information
vivkin committed Sep 17, 2015
2 parents b6e1ef3 + e160237 commit 951845c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/gason.h
Original file line number Diff line number Diff line change
Expand Up @@ -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 {
Expand Down

0 comments on commit 951845c

Please sign in to comment.