Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions src/string.c
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ rbs_string_t rbs_string_new(const char *start, const char *end) {

rbs_string_t rbs_string_strip_whitespace(rbs_string_t *self) {
const char *new_start = self->start;
while (isspace(*new_start) && new_start < self->end) {
while (new_start < self->end && isspace((unsigned char) *new_start)) {
new_start++;
}

Expand All @@ -23,7 +23,7 @@ rbs_string_t rbs_string_strip_whitespace(rbs_string_t *self) {
}

const char *new_end = self->end - 1;
while (isspace(*new_end) && new_start < new_end) {
while (new_start < new_end && isspace((unsigned char) *new_end)) {
new_end--;
}

Expand Down
Loading