File tree Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -1268,14 +1268,14 @@ class ValueType : public Value {
12681268 }
12691269
12701270 // Check for integer overflow.
1271- if (std::is_signed <I>::value == std::is_signed <decltype (a)>::value ) {
1271+ if (std::is_signed_v <I> == std::is_signed_v <decltype (a)>) {
12721272 // conversion does not change sign
12731273 const auto imin = std::numeric_limits<I>::min ();
12741274 const auto imax = std::numeric_limits<I>::max ();
12751275 if (imax < b || a < imin || imax < a) {
12761276 return 0 ;
12771277 }
1278- } else if (std::is_signed <I>::value ) {
1278+ } else if (std::is_signed_v <I>) {
12791279 // conversion is from unsigned to signed
12801280 const auto imax = std::make_unsigned_t <I>(std::numeric_limits<I>::max ());
12811281 if (imax < b || imax < a) {
You can’t perform that action at this time.
0 commit comments