Permalink
Browse files

Avoid unnecessary flag checks when no flags have been changed

  • Loading branch information...
1 parent fe63f72 commit c97d010b35ead6b9d0a507d537fd573a377afa71 @udp committed Feb 13, 2012
Showing with 3 additions and 3 deletions.
  1. +3 −3 json.c
View
6 json.c
@@ -342,7 +342,7 @@ json_value * json_parse_ex (json_settings * settings, const json_char * json, ch
switch (b)
{
whitespace:
- break;
+ continue;
case ']':
@@ -493,7 +493,7 @@ json_value * json_parse_ex (json_settings * settings, const json_char * json, ch
switch (b)
{
whitespace:
- break;
+ continue;
case '"':
@@ -534,7 +534,7 @@ json_value * json_parse_ex (json_settings * settings, const json_char * json, ch
case json_integer:
if (isdigit (b))
- break;
+ continue;
if (b == '.')
{

0 comments on commit c97d010

Please sign in to comment.