Skip to content

Commit

Permalink
Refactor atom case
Browse files Browse the repository at this point in the history
  • Loading branch information
Maumagnaguagno committed Jan 29, 2024
1 parent 7df9659 commit 0b6907d
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions ichor.c
Original file line number Diff line number Diff line change
Expand Up @@ -31,8 +31,8 @@ static VALUE rb_str_to_sexpr(VALUE str)
else
{
char *begin = pos;
while(*pos > ' ' && *pos != '(' && *pos != ')') ++pos;
if(begin != pos) rb_ary_push(list, rb_str_new(begin, pos - begin));
while(*++pos > ' ' && *pos != '(' && *pos != ')');
rb_ary_push(list, rb_str_new(begin, pos - begin));
}
}
if(RARRAY_LEN(stack) != 0) rb_raise(rb_eRuntimeError, "Missing close parentheses");
Expand Down

0 comments on commit 0b6907d

Please sign in to comment.