Browse Source

stb_truetype: Change spelling of fallthrough comment

To pacify GCC warnings at -Wimplicit-fallthrough=4. Why the
all-caps version works and the others don't, I'm not sure; the
GCC manual page lists regular expressions that GCC is checking for
but does not say which regular expression syntax variant it's using,
whether it's looking for a substring match or a full match for
the comment, and what exactly the text being matched against is
for a single-line comment. Sigh.

Fixes issue #507.
Fabian Giesen 4 years ago
parent
commit
afc9c16bfd
1 changed files with 1 additions and 1 deletions
  1. 1 1
      stb_truetype.h

+ 1 - 1
stb_truetype.h

@@ -2136,7 +2136,7 @@ static int stbtt__run_charstring(const stbtt_fontinfo *info, int glyph_index, st
                subrs = stbtt__cid_get_glyph_subrs(info, glyph_index);
                subrs = stbtt__cid_get_glyph_subrs(info, glyph_index);
             has_subrs = 1;
             has_subrs = 1;
          }
          }
-         // fallthrough
+         // FALLTHROUGH
       case 0x1D: // callgsubr
       case 0x1D: // callgsubr
          if (sp < 1) return STBTT__CSERR("call(g|)subr stack");
          if (sp < 1) return STBTT__CSERR("call(g|)subr stack");
          v = (int) s[--sp];
          v = (int) s[--sp];