Avoid explicit narrowing casts
They had been added back in the day with 0c0c6f27 "INTEGRATION: CWS swwarnings" (adressing "#i69287# warning-free code"), but don't seem to actually silence any warnings, at least nowadays. Better to keep such narrowing casts implicit, so that tools like Clang's -fsanitize=implicit-integer-truncation can detect cases at runtime where a too-large value erroneously gets truncated by such a cast. Change-Id: I3bba6fff034e544cd935c0c4dbc98989052add5e Reviewed-on: https://gerrit.libreoffice.org/68541 Tested-by: Jenkins Reviewed-by:Stephan Bergmann <sbergman@redhat.com>
Showing
Please
register
or
sign in
to comment