Skip to content

Commit

Permalink
remove a branch
Browse files Browse the repository at this point in the history
  • Loading branch information
chadaustin committed Apr 18, 2017
1 parent 44ec0df commit 235d330
Showing 1 changed file with 3 additions and 6 deletions.
9 changes: 3 additions & 6 deletions include/sajson.h
Expand Up @@ -701,7 +701,8 @@ namespace sajson {
result = parse_number(p);
break;
case '"':
result = parse_string(p);
out -= 2;
result = parse_string(p, out);
break;

case '[':
Expand Down Expand Up @@ -1072,12 +1073,8 @@ namespace sajson {
return TYPE_OBJECT;
}

parse_result parse_string(char*& p_, size_t* tag = 0) {
parse_result parse_string(char*& p_, size_t* tag) {
char* p = p_;
if (!tag) {
out -= 2;
tag = out;
}

++p; // "
size_t start = p - input.get_data();
Expand Down

0 comments on commit 235d330

Please sign in to comment.