Browse Source
Fixed Signed/Unsigned Comparison Warning
In Visual Studio 17, I get warnings related to these variables:
````
fontstash.h(241): warning C4018: '<': signed/unsigned mismatch
fontstash.h(242): warning C4018: '<': signed/unsigned mismatch
````
Making them unsigned fixes it.
shared-context
Geoff
GitHub
5 years ago
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with
1 additions and
1 deletions
-
src/fontstash.h
|
@@ -231,7 +231,7 @@ void fons__tt_renderGlyphBitmap(FONSttFontImpl *font, unsigned char *output, int |
|
|
{ |
|
|
{ |
|
|
FT_GlyphSlot ftGlyph = font->font->glyph; |
|
|
FT_GlyphSlot ftGlyph = font->font->glyph; |
|
|
int ftGlyphOffset = 0; |
|
|
int ftGlyphOffset = 0; |
|
|
int x, y; |
|
|
|
|
|
|
|
|
unsigned int x, y; |
|
|
FONS_NOTUSED(outWidth); |
|
|
FONS_NOTUSED(outWidth); |
|
|
FONS_NOTUSED(outHeight); |
|
|
FONS_NOTUSED(outHeight); |
|
|
FONS_NOTUSED(scaleX); |
|
|
FONS_NOTUSED(scaleX); |
|
|