You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
This is an internal function so there is no binding contract here and 'safe' is a relative term.
Do you have a problem with the name? I don't think it is worth renaming perhaps.
Do you wish for a safer version that checks the conditions you mentioned?
How would you like to see this issue closed?
Describe the bug
Noticed while implementing saturating addition for rolling window work.
This is a minor thing, and I think all the usages in libcudf are safe anyway, but...
In
integer_utils.hpp
we have (for signed integers).This doesn't work for
divisor == 0
(OK, fine). It also overflows fordivisor == -1
sinceINT_MIN / -1
is undefined.I think all the usages in libcudf are for dividing two positive integers, in which case it's probably fine.
The text was updated successfully, but these errors were encountered: