Skip to content

Commit

Permalink
Merge pull request #2227 from wiredtiger/WT-2148
Browse files Browse the repository at this point in the history
WT-2148 Change encoding functions to avoid -Wshift-negative-value
  • Loading branch information
michaelcahill committed Sep 29, 2015
2 parents aab8101 + e5c9114 commit 62998ce
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/include/intpack.i
Original file line number Diff line number Diff line change
Expand Up @@ -38,8 +38,8 @@
#define POS_2BYTE_MARKER (uint8_t)0xc0
#define POS_MULTI_MARKER (uint8_t)0xe0

#define NEG_1BYTE_MIN ((-1) << 6)
#define NEG_2BYTE_MIN (((-1) << 13) + NEG_1BYTE_MIN)
#define NEG_1BYTE_MIN (-(1 << 6))
#define NEG_2BYTE_MIN (-(1 << 13) + NEG_1BYTE_MIN)
#define POS_1BYTE_MAX ((1 << 6) - 1)
#define POS_2BYTE_MAX ((1 << 13) + POS_1BYTE_MAX)

Expand Down

0 comments on commit 62998ce

Please sign in to comment.