From 52265fe278a5bc38bc238cf56403e9e6eaf21e25 Mon Sep 17 00:00:00 2001 From: Geoff Date: Fri, 20 Mar 2020 09:51:00 +0100 Subject: [PATCH] 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. --- src/fontstash.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/fontstash.h b/src/fontstash.h index 733159b..a69846f 100644 --- a/src/fontstash.h +++ b/src/fontstash.h @@ -231,7 +231,7 @@ void fons__tt_renderGlyphBitmap(FONSttFontImpl *font, unsigned char *output, int { FT_GlyphSlot ftGlyph = font->font->glyph; int ftGlyphOffset = 0; - int x, y; + unsigned int x, y; FONS_NOTUSED(outWidth); FONS_NOTUSED(outHeight); FONS_NOTUSED(scaleX);