Skip to content
Snippets Groups Projects
Commit 5eb4a6f3 authored by JasonJPu's avatar JasonJPu
Browse files

Fix bug

parent 7f5faacc
No related branches found
No related tags found
1 merge request!1SQLP parser with cons cells
...@@ -17,7 +17,7 @@ cons_cell* parse(char* input, int size) { ...@@ -17,7 +17,7 @@ cons_cell* parse(char* input, int size) {
strncpy(buffer, input[1], end - 1); strncpy(buffer, input[1], end - 1);
cons_cell* car_cons = parse(buffer, end - 1); cons_cell* car_cons = parse(buffer, end - 1);
int next_char = end + 1; int next_char = end + 1;
while (input[next_char] == ' ' or input[next_char] == NULL) { while (input[next_char] == ' ' && input[next_char] != NULL) {
next_char++; next_char++;
} }
char buffer_next[500]; char buffer_next[500];
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment