AngusJohnson / Clipper2

Polygon Clipping and Offsetting - C++, C# and Delphi
Boost Software License 1.0
1.45k stars 266 forks source link

Preventing C4244 warnings in GetBounds() etc. #830

Closed tkhisak closed 5 months ago

tkhisak commented 5 months ago

When using Clipper2Lib::ScalePaths() for integer type Paths64, a C4244 warning occurs in the call to GetBounds<double, T2>(paths) (around line 530 of clipper.core.h) . (Using Visual Studio/C++.) I would like to add a static cast to avoid this warning.

AngusJohnson commented 5 months ago

Thank you for the feedback. However, I guess for completeness, static casts should also be applied in lines 458-461 too. These I've done too and will upload momentarily.