hwpfilter/source/fontmap.cxx | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-)
New commits: commit c36f9e981d583c5f62943db9cf4116cbda0f0501 Author: Stephan Bergmann <sberg...@redhat.com> AuthorDate: Wed Apr 13 17:53:58 2022 +0200 Commit: Stephan Bergmann <sberg...@redhat.com> CommitDate: Thu Apr 14 11:41:21 2022 +0200 Pick a better variable type Change-Id: I1c9d3bcb1e750b130a04105ab9cf370b7f31f392 Reviewed-on: https://gerrit.libreoffice.org/c/core/+/132994 Tested-by: Jenkins Reviewed-by: Stephan Bergmann <sberg...@redhat.com> diff --git a/hwpfilter/source/fontmap.cxx b/hwpfilter/source/fontmap.cxx index fcd6c4822169..7eba07c03ad3 100644 --- a/hwpfilter/source/fontmap.cxx +++ b/hwpfilter/source/fontmap.cxx @@ -17,6 +17,7 @@ * the License at http://www.apache.org/licenses/LICENSE-2.0 . */ +#include <cstddef> #include <stdio.h> #ifdef __sun #include <strings.h> @@ -151,7 +152,7 @@ const char* const RepFontTab[] = int getRepFamilyName(const char* orig, char *buf, double &ratio) { - for( int i = 0 ; i < int(SAL_N_ELEMENTS(FontMapTab)); i++) + for( std::size_t i = 0 ; i < SAL_N_ELEMENTS(FontMapTab); i++) { if( !strcmp(orig, FontMapTab[i].familyname) ){ ratio = FontMapTab[i].ratio;