Skip to content

Commit 5d2cfe6

Browse files
committed
More error path
1 parent 3ea4e30 commit 5d2cfe6

File tree

1 file changed

+5
-3
lines changed

1 file changed

+5
-3
lines changed

include/boost/int128/numeric.hpp

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -184,7 +184,8 @@ inline int128_t mul_sat(const int128_t x, const int128_t y) noexcept
184184
}
185185
}
186186

187-
return x * y;
187+
const int128_t res {x * y};
188+
return res;
188189
}
189190

190191
template <>
@@ -206,8 +207,9 @@ inline int128_t mul_sat<true>(const int128_t x, const int128_t y) noexcept
206207
return std::numeric_limits<int128_t>::max();
207208
}
208209
}
209-
210-
return x * y;
210+
const int128_t res {x * y};
211+
std::cout << "x * y: " << res << std::endl;
212+
return res;
211213
}
212214

213215
constexpr uint128_t div_sat(const uint128_t x, const uint128_t y) noexcept

0 commit comments

Comments
 (0)