Remove harmful static_cast<int>
commit4115ad1035cb13e06ed00791415a4258767b8808
authorStephan Bergmann <sbergman@redhat.com>
Tue, 3 Aug 2021 20:13:45 +0000 (3 22:13 +0200)
committerStephan Bergmann <sbergman@redhat.com>
Wed, 4 Aug 2021 05:21:41 +0000 (4 07:21 +0200)
treee55af664b590fd83b8c5d3d8f0fc2ac8bcff0a21
parentd03aaef3dcb5d142955457ae9b8ca4469cfafa38
Remove harmful static_cast<int>

...that were present ever since the code's introduction in
1ced26e19d769e2ac6ca83f57f82cddbd2cfd061 "INTEGRATION: CWS vcl15", but cause
`instdir/program/soffice --headless --convert-to pdf` of doc/abi11923-2.doc from
the crash-testing corpus to fail under UBSan with

> vcl/source/pdf/Matrix3.cxx:30:35: runtime error: 2.14749e+09 is outside the range of representable values of type 'int'
>  #0 in vcl::pdf::Matrix3::transform(Point const&) const at vcl/source/pdf/Matrix3.cxx:30:35 (instdir/program/libvcllo.so +0x94098c5)
[...]

Change-Id: I3855027effa09c592345a9c85a9d5dee38d7c992
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/119955
Tested-by: Jenkins
Reviewed-by: Stephan Bergmann <sbergman@redhat.com>
vcl/source/pdf/Matrix3.cxx