MSVC 2015 Error C2397: conversion from 'double' to 'FLOAT' requires a narrowing conversion

Luke Benes lukebenes at hotmail.com
Sat Oct 29 21:08:29 UTC 2016


I'm now getting the following error when I build with MSVC 2015:

[build CXX] vcl/win/gdi/winlayout.cxx
C:/core/vcl/win/gdi/winlayout.cxx(3533): error C2397: conversion from 'double' to 'FLOAT' requires a narrowing conversion
C:/core/solenv/gbuild/LinkTarget.mk:189: recipe for target 'C:/core/workdir/CxxObject/vcl/win/gdi/winlayout.o' failed
make[1]: *** [C:/core/workdir/CxxObject/vcl/win/gdi/winlayout.o] Error 2
make[1]: *** Waiting for unfinished jobs....
Makefile:266: recipe for target 'build' failed
make: *** [build] Error 2

It looks like the source of the failure is: 
https://cgit.freedesktop.org/libreoffice/core/commit/?id=3d456dfa6637c6c3ebe7a21f1f1a5b05039cee2a

with
3533:      mpRT->DrawGlyphRun({ baseline.x, baseline.y + nYDiff }, &glyphs, pBrush);


Khaled, Could you please take a look at this?


More information about the LibreOffice mailing list