Skip to content

Commit 19dc566

Browse files
nehebpiponazo
authored andcommitted
use _v
Signed-off-by: Rosen Penev <[email protected]>
1 parent 0dcd860 commit 19dc566

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

include/exiv2/value.hpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff 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) {

0 commit comments

Comments
 (0)