mirror of
https://github.com/Tencent/rapidjson.git
synced 2025-03-06 13:41:35 +01:00
Fix #949 about -Werror=conversion
This commit is contained in:
parent
f8eb7bae89
commit
56b7216efe
@ -441,8 +441,8 @@ TEST(Pointer, Stringify) {
|
||||
}
|
||||
|
||||
// Construct a Pointer with static tokens, no dynamic allocation involved.
|
||||
#define NAME(s) { s, sizeof(s) / sizeof(s[0]) - 1, kPointerInvalidIndex }
|
||||
#define INDEX(i) { #i, sizeof(#i) - 1, i }
|
||||
#define NAME(s) { s, static_cast<SizeType>(sizeof(s) / sizeof(s[0]) - 1), kPointerInvalidIndex }
|
||||
#define INDEX(i) { #i, static_cast<SizeType>(sizeof(#i) - 1), i }
|
||||
|
||||
static const Pointer::Token kTokens[] = { NAME("foo"), INDEX(0) }; // equivalent to "/foo/0"
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user