Skip to content

Commit

Permalink
Avoid silly compiler warning
Browse files Browse the repository at this point in the history
  • Loading branch information
flori committed Aug 17, 2012
1 parent b93e320 commit eb2ac9e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion ext/json/ext/generator/generator.c
Original file line number Diff line number Diff line change
Expand Up @@ -864,7 +864,7 @@ static int isArrayOrObject(VALUE string)
if (string_len < 2) return 0;
for (; p < q && isspace(*p); p++);
for (; q > p && isspace(*q); q--);
return *p == '[' && *q == ']' || *p == '{' && *q == '}';
return (*p == '[' && *q == ']') || (*p == '{' && *q == '}');
}

/*
Expand Down

0 comments on commit eb2ac9e

Please sign in to comment.