Skip to content

Commit f8b3a3d

Browse files
committed
Sync with jtckdint upstream
1 parent ab50020 commit f8b3a3d

File tree

1 file changed

+0
-10
lines changed

1 file changed

+0
-10
lines changed

jtckdint.h

Lines changed: 0 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -191,16 +191,6 @@ inline bool ckd_sub(__T *__res, __U __a, __V __b) {
191191
__ckd_uintmax_t __y = __b;
192192
__ckd_uintmax_t __z = __x - __y;
193193
*__res = __z;
194-
if (sizeof(__z) > sizeof(__U) && sizeof(__z) > sizeof(__V)) {
195-
if (sizeof(__z) > sizeof(__T) || std::is_signed<__T>::value) {
196-
return static_cast<__ckd_intmax_t>(__z) != static_cast<__T>(__z);
197-
} else if (!std::is_same<__T, __ckd_uintmax_t>::value) {
198-
return (__z != static_cast<__T>(__z) ||
199-
((std::is_signed<__U>::value ||
200-
std::is_signed<__V>::value) &&
201-
static_cast<__ckd_intmax_t>(__z) < 0));
202-
}
203-
}
204194
bool __truncated = false;
205195
if (sizeof(__T) < sizeof(__ckd_intmax_t)) {
206196
__truncated = __z != static_cast<__ckd_uintmax_t>(static_cast<__T>(__z));

0 commit comments

Comments
 (0)