Skip to content

Commit 7246309

Browse files
committed
revert NULL_RANGE usage
1 parent cb9df8c commit 7246309

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/lexstate.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -94,7 +94,7 @@ static const char *RBS_TOKENTYPE_NAMES[] = {
9494

9595
const rbs_position_t NullPosition = { -1, -1, -1, -1 };
9696
const rbs_range_t NULL_RANGE = { { -1, -1, -1, -1 }, { -1, -1, -1, -1 } };
97-
const rbs_token_t NullToken = { .type = NullType, .range = NULL_RANGE };
97+
const rbs_token_t NullToken = { .type = NullType, .range = {0} };
9898

9999
const char *rbs_token_type_str(enum RBSTokenType type) {
100100
return RBS_TOKENTYPE_NAMES[type];

0 commit comments

Comments
 (0)