Skip to content

Commit

Permalink
FEAT: small code optimization (removing unnecessary SERIES_FULL check)
Browse files Browse the repository at this point in the history
  • Loading branch information
Oldes committed Sep 16, 2022
1 parent 2f601ff commit dc48b33
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions src/core/c-word.c
Original file line number Diff line number Diff line change
Expand Up @@ -217,8 +217,7 @@
// If word symbol part of word table is full, expand it:
if (SERIES_FULL(PG_Word_Table.series)) {
Extend_Series(PG_Word_Table.series, 256);
}
if (SERIES_FULL(Bind_Table)) {
// Bind_Table size must be same like PG_Word_Table.series, so we must extend it as well.
Extend_Series(Bind_Table, 256);
CLEAR_SERIES(Bind_Table);
}
Expand Down

0 comments on commit dc48b33

Please sign in to comment.