No need for a cast here when comparing against const int DATE_SIZE = 40

Change-Id: I2e9190ac08dc79fe624572ff3a96c32c18afce29
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/135341
Tested-by: Jenkins
Reviewed-by: Stephan Bergmann <sbergman@redhat.com>
This commit is contained in:
Stephan Bergmann 2022-06-03 10:27:55 +02:00
parent 652e4ee372
commit 949f2e0624

View file

@ -148,7 +148,7 @@ hchar_string DateCode::GetString()
format[DATE_SIZE - 1] = 0;
fmt = format[0] ? format : defaultform;
for (; *fmt && (static_cast<int>(ret.size()) < DATE_SIZE); fmt++)
for (; *fmt && (ret.size() < DATE_SIZE); fmt++)
{
form = add_zero ? "%02d" : "%d";