From 126871b0715a0fd6c39102c9ed597acf53475420 Mon Sep 17 00:00:00 2001 From: Stephan Bergmann Date: Sun, 8 Jan 2017 15:55:11 +0100 Subject: Work around -fsanitize=float-cast-overflow ...when the value is outside the range of type 'unsigned char'; hopefully it'll always be in the range of type 'long long' Change-Id: I8ec38727648bea20875cb488fe143b4759812b5a --- vcl/osx/salnativewidgets.cxx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'vcl') diff --git a/vcl/osx/salnativewidgets.cxx b/vcl/osx/salnativewidgets.cxx index 36e8bf3db016..31824cd754a1 100644 --- a/vcl/osx/salnativewidgets.cxx +++ b/vcl/osx/salnativewidgets.cxx @@ -659,7 +659,7 @@ bool AquaSalGraphics::drawNativeControl(ControlType nType, if( nType == ControlType::IntroProgress ) aTrackInfo.enableState = kThemeTrackActive; aTrackInfo.filler1 = 0; - aTrackInfo.trackInfo.progress.phase = static_cast(CFAbsoluteTimeGetCurrent()*10.0); + aTrackInfo.trackInfo.progress.phase = static_cast(CFAbsoluteTimeGetCurrent()*10.0); HIThemeDrawTrack( &aTrackInfo, nullptr, mrContext, kHIThemeOrientationNormal ); bOK = true; -- cgit