Fix compile error on arm.
NOTRY=true TBR=machenbach@chromium.org Review URL: https://codereview.chromium.org/1773573002 Cr-Commit-Position: refs/heads/master@{#34529}
This commit is contained in:
parent
f9d7c711af
commit
2947b2fa6f
@ -79,7 +79,8 @@ class CharacterRange {
|
||||
// For compatibility with the CHECK_OK macro
|
||||
CharacterRange(void* null) { DCHECK_NULL(null); } // NOLINT
|
||||
CharacterRange(uc32 from, uc32 to) : from_(from), to_(to) {
|
||||
DCHECK(from <= to);
|
||||
DCHECK(0 <= from && to <= String::kMaxCodePoint);
|
||||
DCHECK(static_cast<uint32_t>(from) <= static_cast<uint32_t>(to));
|
||||
}
|
||||
static void AddClassEscape(uc16 type, ZoneList<CharacterRange>* ranges,
|
||||
Zone* zone);
|
||||
@ -88,8 +89,6 @@ class CharacterRange {
|
||||
return CharacterRange(value, value);
|
||||
}
|
||||
static inline CharacterRange Range(uc32 from, uc32 to) {
|
||||
DCHECK(0 <= from && to <= String::kMaxCodePoint);
|
||||
DCHECK(static_cast<uint32_t>(from) <= static_cast<uint32_t>(to));
|
||||
return CharacterRange(from, to);
|
||||
}
|
||||
static inline CharacterRange Everything() {
|
||||
|
Loading…
Reference in New Issue
Block a user