OpenXRay/xray-16

Bug in _types.h

Aperta

#195 aperta il 21 apr 2018

 (4 commenti) (0 reazioni) (0 assegnatari)C++ (519 fork)auto 404
Code QualityHelp wanted

Metriche repository

Star
 (3524 stelle)
Metriche merge PR
 (Metriche PR in attesa)

Descrizione

https://github.com/OpenXRay/xray-16/blob/70f130c6fc719293c3b6abb1ccacbb084eaee6d1/src/xrCore/_types.h#L31 Is there problem with determination min values here ? For example -std::numeric_limits::max() != std::numeric_limits::min() also for signed types. http://en.cppreference.com/w/cpp/types/numeric_limits Also can replace type_zero to std::numeric_limits::lowest() ?

Guida contributor