Remove some C-style casts
This commit is contained in:
parent
504c361cb8
commit
632a88c8ef
2 changed files with 2 additions and 3 deletions
|
|
@ -14,11 +14,11 @@ namespace tree_sitter {
|
|||
static const char MAX_CHAR = '\xff';
|
||||
|
||||
int max_int(const CharacterRange &range) {
|
||||
return range.max == MAX_CHAR ? 255 : (int)range.max;
|
||||
return range.max == MAX_CHAR ? 255 : static_cast<int>(range.max);
|
||||
}
|
||||
|
||||
int min_int(const CharacterRange &range) {
|
||||
return (int)range.min;
|
||||
return static_cast<int>(range.min);
|
||||
}
|
||||
|
||||
CharacterSet::CharacterSet() : ranges({}) {}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue