diff options
author | Stephan Bergmann <sbergman@redhat.com> | 2017-01-08 15:55:11 +0100 |
---|---|---|
committer | Stephan Bergmann <sbergman@redhat.com> | 2017-01-08 15:55:11 +0100 |
commit | 126871b0715a0fd6c39102c9ed597acf53475420 (patch) | |
tree | 23ef25a9885777db1fc2c5c4d6e8ad22a60498a8 /vcl | |
parent | e945999b3ef852faa237e028687b444668d9a703 (diff) |
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
Diffstat (limited to 'vcl')
-rw-r--r-- | vcl/osx/salnativewidgets.cxx | 2 |
1 files changed, 1 insertions, 1 deletions
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<UInt8>(CFAbsoluteTimeGetCurrent()*10.0); + aTrackInfo.trackInfo.progress.phase = static_cast<long long>(CFAbsoluteTimeGetCurrent()*10.0); HIThemeDrawTrack( &aTrackInfo, nullptr, mrContext, kHIThemeOrientationNormal ); bOK = true; |