@@ -2191,7 +2191,7 @@ stbi_inline static int stbi__extend_receive(stbi__jpeg * j, int n) {
21912191    if  (j->code_bits  < n)
21922192        stbi__grow_buffer_unsafe (j);
21932193    if  (j->code_bits  < n)
2194-         return  0 ; //  ran out of bits from stream, return 0s intead  of continuing
2194+         return  0 ; //  ran out of bits from stream, return 0s instead  of continuing
21952195
21962196    sgn = j->code_buffer  >> 31 ; //  sign bit always in MSB; 0 if MSB clear (positive), 1 if MSB set (negative)
21972197    k = stbi_lrot (j->code_buffer , n);
@@ -2207,7 +2207,7 @@ stbi_inline static int stbi__jpeg_get_bits(stbi__jpeg * j, int n) {
22072207    if  (j->code_bits  < n)
22082208        stbi__grow_buffer_unsafe (j);
22092209    if  (j->code_bits  < n)
2210-         return  0 ; //  ran out of bits from stream, return 0s intead  of continuing
2210+         return  0 ; //  ran out of bits from stream, return 0s instead  of continuing
22112211    k = stbi_lrot (j->code_buffer , n);
22122212    j->code_buffer  = k & ~stbi__bmask[n];
22132213    k &= stbi__bmask[n];
@@ -2220,7 +2220,7 @@ stbi_inline static int stbi__jpeg_get_bit(stbi__jpeg * j) {
22202220    if  (j->code_bits  < 1 )
22212221        stbi__grow_buffer_unsafe (j);
22222222    if  (j->code_bits  < 1 )
2223-         return  0 ; //  ran out of bits from stream, return 0s intead  of continuing
2223+         return  0 ; //  ran out of bits from stream, return 0s instead  of continuing
22242224    k = j->code_buffer ;
22252225    j->code_buffer  <<= 1 ;
22262226    --j->code_bits ;
@@ -5015,13 +5015,13 @@ static int stbi__create_png_image_raw(stbi__png * a, stbi_uc * raw, stbi__uint32
50155015
50165016    //  we make a separate pass to expand bits to pixels; for performance,
50175017    //  this could run two scanlines behind the above code, so it won't
5018-     //  intefere  with filtering but will still be in the cache.
5018+     //  interfere  with filtering but will still be in the cache.
50195019    if  (depth < 8 ) {
50205020        for  (j = 0 ; j < y; ++j) {
50215021            stbi_uc * cur = a->out  + stride * j;
50225022            stbi_uc * in = a->out  + stride * j + x * out_n - img_width_bytes;
50235023            //  unpack 1/2/4-bit into a 8-bit buffer. allows us to keep the common 8-bit path optimal at minimal cost for
5024-             //  1/2/4-bit png guarante  byte alignment, if width is not multiple of 8/4/2 we'll decode dummy trailing data that
5024+             //  1/2/4-bit png guarantee  byte alignment, if width is not multiple of 8/4/2 we'll decode dummy trailing data that
50255025            //  will be skipped in the later loop
50265026            stbi_uc scale = (color == 0 ) ? stbi__depth_scale_table[depth] : 1 ; //  scale grayscale values to 0..255 range
50275027
@@ -5215,7 +5215,7 @@ static int stbi__expand_png_palette(stbi__png * a, stbi_uc * palette, int len, i
52155215    if  (p == NULL )
52165216        return  stbi__err (" outofmem"  , " Out of memory"  );
52175217
5218-     //  between here and free(out) below, exitting  would leak
5218+     //  between here and free(out) below, exiting  would leak
52195219    temp_out = p;
52205220
52215221    if  (pal_img_n == 3 ) {
@@ -6281,7 +6281,7 @@ static void * stbi__tga_load(stbi__context * s, int * x, int * y, int * comp, in
62816281    if  (tga_width > STBI_MAX_DIMENSIONS)
62826282        return  stbi__errpuc (" too large"  , " Very large image (corrupt?)"  );
62836283
6284-     //    do a tiny bit of precessing 
6284+     //    do a tiny bit of processing 
62856285    if  (tga_image_type >= 8 ) {
62866286        tga_image_type -= 8 ;
62876287        tga_is_RLE = 1 ;
@@ -7213,7 +7213,7 @@ static stbi_uc * stbi__gif_load_next(stbi__context * s, stbi__gif * g, int * com
72137213            //  0:  not specified.
72147214        }
72157215
7216-         //  background is what out is after the undoing of the previou  frame;
7216+         //  background is what out is after the undoing of the previous  frame;
72177217        memcpy (g->background , g->out , 4  * g->w  * g->h );
72187218    }
72197219
@@ -8277,7 +8277,7 @@ STBIDEF int stbi_is_16_bit_from_callbacks(stbi_io_callbacks const * c, void * us
82778277      1.31  (2011-06-20) 
82788278              a few more leak fixes, bug in PNG handling (SpartanJ) 
82798279      1.30  (2011-06-11) 
8280-               added ability to load files via callbacks to accomidate  custom input streams (Ben Wenger) 
8280+               added ability to load files via callbacks to accommodate  custom input streams (Ben Wenger) 
82818281              removed deprecated format-specific test/load functions 
82828282              removed support for installable file formats (stbi_loader) -- would have been broken for IO callbacks 
82838283   anyway error cases in bmp and tga give messages and don't leak (Raymond Barbiero, grisha) fix inefficiency in 
0 commit comments