From 3c894d1e6faa9b0d5eb762ec3944bf6577e301ff Mon Sep 17 00:00:00 2001 From: Idan Horowitz Date: Sun, 18 Apr 2021 22:11:41 +0300 Subject: LibGfx: Use size_t instead of int for glyph count The count is always non-negative --- Userland/Libraries/LibGfx/BitmapFont.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'Userland/Libraries/LibGfx/BitmapFont.h') diff --git a/Userland/Libraries/LibGfx/BitmapFont.h b/Userland/Libraries/LibGfx/BitmapFont.h index c62807a4ad..4fab8edc27 100644 --- a/Userland/Libraries/LibGfx/BitmapFont.h +++ b/Userland/Libraries/LibGfx/BitmapFont.h @@ -107,7 +107,7 @@ public: m_glyph_widths[ch] = width; } - int glyph_count() const { return m_glyph_count; } + size_t glyph_count() const { return m_glyph_count; } FontTypes type() { return m_type; } void set_type(FontTypes type); -- cgit v1.2.3