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.
|
// Construct a Pointer with static tokens, no dynamic allocation involved.
|
||||||
#define NAME(s) { s, sizeof(s) / sizeof(s[0]) - 1, kPointerInvalidIndex }
|
#define NAME(s) { s, static_cast<SizeType>(sizeof(s) / sizeof(s[0]) - 1), kPointerInvalidIndex }
|
||||||
#define INDEX(i) { #i, sizeof(#i) - 1, i }
|
#define INDEX(i) { #i, static_cast<SizeType>(sizeof(#i) - 1), i }
|
||||||
|
|
||||||
static const Pointer::Token kTokens[] = { NAME("foo"), INDEX(0) }; // equivalent to "/foo/0"
|
static const Pointer::Token kTokens[] = { NAME("foo"), INDEX(0) }; // equivalent to "/foo/0"
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user