Browse Source

jimp: fix compilation on clang

rexim 1 month ago
parent
commit
4c7b05f242
1 changed files with 2 additions and 1 deletions
  1. 2 1
      jimp.h

+ 2 - 1
jimp.h

@@ -237,10 +237,11 @@ static bool jimp__get_token(Jimp *jimp)
                 jimp->token = JIMP_STRING;
                 jimp->token = JIMP_STRING;
                 return true;
                 return true;
             }
             }
-            default:
+            default: {
                 char x = *jimp->point++;
                 char x = *jimp->point++;
                 jimp__append_to_string(jimp, x);
                 jimp__append_to_string(jimp, x);
             }
             }
+            }
         }
         }
         jimp->token = JIMP_INVALID;
         jimp->token = JIMP_INVALID;
         jimp_diagf(jimp, "ERROR: unfinished string\n");
         jimp_diagf(jimp, "ERROR: unfinished string\n");