X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/66160760e1b333dd73f4c32cb6549bbc0461b67e..69659fd770f615210efac4b4fa741b3ad6223616:/src/msw/font.cpp diff --git a/src/msw/font.cpp b/src/msw/font.cpp index 8023ed0e3d..eec88f8c06 100644 --- a/src/msw/font.cpp +++ b/src/msw/font.cpp @@ -476,7 +476,8 @@ int wxNativeFontInfo::GetPointSize() const // for printing! const int ppInch = ::GetDeviceCaps(ScreenHDC(), LOGPIXELSY); - return (int) (((72.0*(double)abs(lf.lfHeight)) / (double) ppInch) + 0.5); + // BC++ 2007 doesn't provide abs(long) overload, hence the cast + return (int) (((72.0*abs((int)lf.lfHeight)) / (double) ppInch) + 0.5); } wxSize wxNativeFontInfo::GetPixelSize() const