Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Better version of patch to fix right shifting negative smallints
The previous patch did not check what sign was there and didn't fully handle big/smallint containing P6int's. This one adds a new BIGINT_IS_NEGATIVE() function to check if it is negative. This function may be very useful other places we need to check if a p6int is negative.
- Loading branch information
Showing
1 changed file
with
12 additions
and
2 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
I'd probably put this inside of the
if
below.