summaryrefslogtreecommitdiff
path: root/Userland/Libraries/LibGfx/BitmapFont.h
diff options
context:
space:
mode:
authorIdan Horowitz <idan.horowitz@gmail.com>2021-04-18 22:11:41 +0300
committerAndreas Kling <kling@serenityos.org>2021-04-18 22:10:25 +0200
commit3c894d1e6faa9b0d5eb762ec3944bf6577e301ff (patch)
treed4933945da75114489c0840f4a81480256716afc /Userland/Libraries/LibGfx/BitmapFont.h
parentc1971df4c7d810cf22300036d451690957e2ea4a (diff)
downloadserenity-3c894d1e6faa9b0d5eb762ec3944bf6577e301ff.zip
LibGfx: Use size_t instead of int for glyph count
The count is always non-negative
Diffstat (limited to 'Userland/Libraries/LibGfx/BitmapFont.h')
-rw-r--r--Userland/Libraries/LibGfx/BitmapFont.h2
1 files changed, 1 insertions, 1 deletions
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);