hwpfilter/source/hwpread.cxx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
New commits: commit 2256912336fbcf0b985d84dfbf355d1728ee425c Author: Stephan Bergmann <sberg...@redhat.com> AuthorDate: Wed Apr 13 17:55:25 2022 +0200 Commit: Stephan Bergmann <sberg...@redhat.com> CommitDate: Mon May 2 20:01:01 2022 +0200 Pick a better variable type Change-Id: I2a24201d0e9cb230aefbb92dadf30907b0d1dccb Reviewed-on: https://gerrit.libreoffice.org/c/core/+/133677 Tested-by: Jenkins Reviewed-by: Stephan Bergmann <sberg...@redhat.com> 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<int>(len3_); i++) { + for (uint i = 0 ; i < len3_; i++) { if(str3[i] == 0 ) break; if( i >= DATE_SIZE ) break; pDate->format[i] = str3[i];