summaryrefslogtreecommitdiff
path: root/test/source
diff options
context:
space:
mode:
authorStephan Bergmann <sbergman@redhat.com>2019-07-29 07:50:06 +0200
committerStephan Bergmann <sbergman@redhat.com>2019-07-29 08:42:21 +0200
commitf53fcf9cfcc0bef415f9d2d95132ccd8bbe96061 (patch)
tree4a3505f210074e9c2d2a1f6db20344914af25d08 /test/source
parent08328925e3406ad91b953d368483a6a5587c07c2 (diff)
Avoid -fsanitize=float-cast-overflow
...when converting sal_Int64 9223372036854775807 (i.e., 0xFFFFFFFFFFFFFFF) to double 9.22337e+18 (i.e., by rounding up to 2^63, represented as 0x43e0000000000000) and then back to sal_Int64 (for which it is now too large). Started to happen during UITest_writer_dialogs: > vcl/source/control/field.cxx:1116:35: runtime error: 9.22337e+18 is outside the range of representable values of type 'long' > #0 in MetricField::ConvertValue(long, unsigned short, MapUnit, FieldUnit) at vcl/source/control/field.cxx:1116:35 > #1 in svx::sidebar::PosSizePropertyPanel::SetPosSizeMinMax() at svx/source/sidebar/possize/PosSizePropertyPanel.cxx:1058:47 > #2 in svx::sidebar::PosSizePropertyPanel::MetricState(SfxItemState, SfxPoolItem const*) at svx/source/sidebar/possize/PosSizePropertyPanel.cxx:893:5 > #3 in svx::sidebar::PosSizePropertyPanel::NotifyItemUpdate(unsigned short, SfxItemState, SfxPoolItem const*, bool) at svx/source/sidebar/possize/PosSizePropertyPanel.cxx:735:13 > #4 in sfx2::sidebar::ControllerItem::StateChanged(unsigned short, SfxItemState, SfxPoolItem const*) at sfx2/source/sidebar/ControllerItem.cxx:67:26 > #5 in SfxStateCache::SetState_Impl(SfxItemState, SfxPoolItem const*, bool) at sfx2/source/control/statcach.cxx:412:24 > #6 in SfxStateCache::SetState(SfxItemState, SfxPoolItem const*, bool) at sfx2/source/control/statcach.cxx:326:5 > #7 in SfxBindings::Update(unsigned short) at sfx2/source/control/bindings.cxx:352:25 > #8 in svx::sidebar::PosSizePropertyPanel::PosSizePropertyPanel(vcl::Window*, com::sun::star::uno::Reference<com::sun::star::frame::XFrame> const&, SfxBindings*, com::sun::star::uno::Reference<com::sun::star::ui::XSidebar> const&) at svx/source/sidebar/possize/PosSizePropertyPanel.cxx:114:17 [...] Change-Id: I23a39181a241129f3c6c83e9934405509bd98292 Reviewed-on: https://gerrit.libreoffice.org/76512 Tested-by: Jenkins Reviewed-by: Stephan Bergmann <sbergman@redhat.com>
Diffstat (limited to 'test/source')
0 files changed, 0 insertions, 0 deletions