SPEC-2513 Fixes to enable w4310

This commit is contained in:
Esteban Papp
2021-06-09 13:05:45 -07:00
committed by GitHub
parent 68ffdd6714
commit 47205d088f
2 changed files with 2 additions and 5 deletions
+2 -4
View File
@@ -282,11 +282,9 @@ struct TIntTraits
static const size_t nPOS_BITS
= sizeof(T) * 8 - bSIGNED;
static const T nMIN
= bSIGNED ? T (T(1) << (T(sizeof(T) * 8 - 1))) : T(0);
static const T nMIN = std::numeric_limits<T>::min();
static const T nMAX
= ~nMIN;
static const T nMAX = std::numeric_limits<T>::max();
};
template<uint S>
@@ -66,7 +66,6 @@ ly_append_configurations_options(
/wd4244 # conversion, possible loss of data
/wd4245 # conversion, signed/unsigned mismatch
/wd4267 # conversion, possible loss of data
/wd4310 # cast truncates constant value
/wd4389 # comparison, signed/unsigned mismatch
# Enabling warnings that are disabled by default from /W4