freetype-commit
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Git][freetype/freetype-demos][gsoc-2022-chariri-2] [ftinspect] Eliminat


From: Charlie Jiang (@cqjjjzr)
Subject: [Git][freetype/freetype-demos][gsoc-2022-chariri-2] [ftinspect] Eliminate compile warnings on GCC.
Date: Thu, 21 Jul 2022 04:52:34 +0000

Charlie Jiang pushed to branch gsoc-2022-chariri-2 at FreeType / FreeType Demo Programs

Commits:

  • 94bfed42
    by Charlie Jiang at 2022-07-21T12:51:26+08:00
    [ftinspect] Eliminate compile warnings on GCC.
    
    * src/ftinspect/engine/stringrenderer.cpp: Fix signed/unsigned comparsion..
    
    * src/ftinspect/rendering/glyphcontinuous.cpp: Add a dummy `default` case..
    

2 changed files:

Changes:

  • src/ftinspect/engine/stringrenderer.cpp
    ... ... @@ -301,7 +301,7 @@ StringRenderer::prepareLine(int offset,
    301 301
           loadStringGlyphs();
    
    302 302
         }
    
    303 303
     
    
    304
    -    for (int n = offset; n < activeGlyphs_.size();)
    
    304
    +    for (unsigned n = offset; n < activeGlyphs_.size();)
    
    305 305
         {
    
    306 306
           auto& ctx = activeGlyphs_[n];
    
    307 307
           if (repeated_) // if repeated, we must stop when we touch the end of line
    

  • src/ftinspect/rendering/glyphcontinuous.cpp
    ... ... @@ -224,6 +224,7 @@ GlyphContinuous::preprocessGlyph(FT_Glyph* glyphPtr)
    224 224
         }
    
    225 225
       }
    
    226 226
       break;
    
    227
    +  default:; // Nothing for M_NORMAL.
    
    227 228
       }
    
    228 229
     }
    
    229 230
     
    


  • reply via email to

    [Prev in Thread] Current Thread [Next in Thread]