From fcefd8251c2dbf6692ab1dc0a9c5b6af6cb33da8 Mon Sep 17 00:00:00 2001 From: Markus Gans Date: Sat, 22 Sep 2018 04:08:24 +0200 Subject: [PATCH] Consistent use of size_t in FTermLinux::setScreenFont --- src/ftermlinux.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/ftermlinux.cpp b/src/ftermlinux.cpp index 845c2833..50f95984 100644 --- a/src/ftermlinux.cpp +++ b/src/ftermlinux.cpp @@ -661,7 +661,7 @@ int FTermLinux::setScreenFont ( uChar fontdata[], uInt count font.data = fontdata; else { - const uInt bytes_per_line = font.width / 8; + const std::size_t bytes_per_line = font.width / 8; const std::size_t data_size = bytes_per_line * 32 * font.charcount; try @@ -674,7 +674,7 @@ int FTermLinux::setScreenFont ( uChar fontdata[], uInt count return -1; } - for (uInt i = 0; i < count; i++) + for (std::size_t i = 0; i < count; i++) std::memcpy ( const_cast(font.data + bytes_per_line * 32 * i) , &fontdata[i * font.height] , font.height);