WIP: Correct all typos (#498)

This commit is contained in:
jared 2022-07-20 17:01:15 -04:00 committed by GitHub
parent 98254a7c1f
commit ed205e98a1
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
79 changed files with 162 additions and 162 deletions

View file

@ -194,7 +194,7 @@ static int stbi__mad2sizes_valid(int a, int b, int add) {
return stbi__mul2sizes_valid(a, b) && stbi__addsizes_valid(a * b, add);
}
// returns 1 if "a*b*c + add" has no negaive terms/factors and doesn't overflow
// returns 1 if "a*b*c + add" has no negative terms/factors and doesn't overflow
static int stbi__mad3sizes_valid(int a, int b, int c, int add) {
return stbi__mul2sizes_valid(a, b) && stbi__mul2sizes_valid(a * b, c) &&
stbi__addsizes_valid(a * b * c, add);
@ -1251,7 +1251,7 @@ static void stbi__jpeg_reset(stbi__jpeg *j) {
j->marker = STBI__MARKER_none;
j->todo = j->restart_interval ? j->restart_interval : 0x7fffffff;
j->eob_run = 0;
// no more than 1<<31 MCUs if no restart_interal? that's plenty safe,
// no more than 1<<31 MCUs if no restart_interval? that's plenty safe,
// since we don't even allow 1<<30 pixels
}
@ -3728,13 +3728,13 @@ static unsigned char *stbi__gif_load_next(stbi__context *s, stbi__gif *g,
}
}
} else {
// This is a non-disposal case eithe way, so just
// This is a non-disposal case either way, so just
// leave the pixels as is, and they will become the new background
// 1: do not dispose
// 0: not specified.
}
// background is what out is after the undoing of the previou frame;
// background is what out is after the undoing of the previous frame;
memcpy(g->background, g->out, 4 * g->w * g->h);
}