Skip to content

Commit

Permalink
Stop 32-bit pointer extension
Browse files Browse the repository at this point in the history
  • Loading branch information
ChrisJefferson committed Sep 16, 2015
1 parent b6e1ef3 commit e160237
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 e160237

Please sign in to comment.