optimad / bitpit

Open source library for scientific HPC
http://optimad.github.io/bitpit/
GNU Lesser General Public License v3.0
117 stars 34 forks source link

PABLO: Reduce some UBSAN `-fsanitize_implicit_conversion` runtime errors. #314

Closed DMurataj01 closed 2 years ago

DMurataj01 commented 2 years ago

Note - the idim conversions are for consistency with dim also being a int8_t

DMurataj01 commented 2 years ago

On new code we try to use C++ static_cast<> rather than C-style cast, but there is no need to updated this pull request. Thanks for the changes.

Following the existing code style but noted for next time!