From 2256912336fbcf0b985d84dfbf355d1728ee425c Mon Sep 17 00:00:00 2001 From: Stephan Bergmann Date: Wed, 13 Apr 2022 17:55:25 +0200 Subject: [PATCH] Pick a better variable type Change-Id: I2a24201d0e9cb230aefbb92dadf30907b0d1dccb Reviewed-on: https://gerrit.libreoffice.org/c/core/+/133677 Tested-by: Jenkins Reviewed-by: Stephan Bergmann --- hwpfilter/source/hwpread.cxx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/hwpfilter/source/hwpread.cxx b/hwpfilter/source/hwpread.cxx index a1b9415f70b4..6477b193b204 100644 --- a/hwpfilter/source/hwpread.cxx +++ b/hwpfilter/source/hwpread.cxx @@ -106,7 +106,7 @@ bool FieldCode::Read(HWPFile & hwpf) if( type[0] == 3 && type[1] == 2 ){ /* It must create a format as created date. */ DateCode *pDate = new DateCode; - for (int i = 0 ; i < static_cast(len3_); i++) { + for (uint i = 0 ; i < len3_; i++) { if(str3[i] == 0 ) break; if( i >= DATE_SIZE ) break; pDate->format[i] = str3[i];