Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Deduplicate THPUtils_checkLong/THPUtils_unpackLong (pytorch#2218)
There were two implementations of THPUtils_checkLong/THPUtils_unpackLong; one that was a macro and one that was not, which is hella bad if you accidentally include the macro before the real definition. Now we always use the inline function. A reasonable follow-up task would be to un-macro-ify the rest of these functions. Signed-off-by: Edward Z. Yang <[email protected]>
- Loading branch information