forked from rustyrussell/ccan
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
bitmap: Fix some bugs on 32-bit platforms
The bitmap_word type is an unsigned long. However in some places we assign it using -1ULL, a 64-bit value on many platforms. We sometimes get away with this because it masks correctly, but in other cases it breaks things. To clean this up define a new BITMAP_WORD_1 constant, indicating a bitmap_word with all bits set, and use that instead of explicit UL or ULL qualifiers. Signed-off-by: David Gibson <[email protected]>
- Loading branch information
Showing
2 changed files
with
10 additions
and
7 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
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