| FazBrowse GitHub Viewer | Trending | | Home |
| Tools: [Download Repo ZIP] [Original HTTPS Page] |
|
I see one more on AppVeyor to fix: [80/97] Compiling C++ object src/ft2font.cp311-win_amd64.pyd.p/ft2font_wrapper.cpp.obj ../../src/ft2font_wrapper.cpp(964): warning C4244: 'argument': conversion from 'double' to 'int', possible loss of data ../../src/ft2font_wrapper.cpp(964): warning C4244: 'argument': conversion from 'double' to 'int', possible loss of data |
Sorry, something went wrong.
These were silently truncated to int anyway, so we should make the types explicit.
The Agg API uses `double`s here, but the array sizes are `pybind11::ssize_t`, which are technically bigger (in some ways), and cause a warning on MSVC. We don't accept a backing surface larger than ~2^24, so there's no worry about these overflowing.
Its only use was removed in 193e5a9.
These were silently truncated to int anyway, so we should make the types explicit.
|
AppVeyor and Azure Windows builds are now warning free. |
Sorry, something went wrong.
| Back | FazBrowse Home | New Git URL |
PR summary
MSVC on the Azure/AppVeyor builds currently produce a few warnings. These are due to some lax input types, or otherwise because of differing type sizes on Windows. The values are generally not in the range where it would matter, so we can make the casts explicit to silence the warnings.
For the incorrect types, the old types are deprecated, but still accepted.
This is based on #28842 at the moment due to conflicting changes, but the last four commits are the relevant ones here.
PR checklist