On 32-bit platform, incr() doesn't handle >32bit integers #74

Closed
mbox opened this Issue Feb 14, 2012 · 0 comments

Projects

None yet

2 participants

@mbox
mbox commented Feb 14, 2012

>>> cache.set('big', 1, timeout=100000)
>>> cache.incr('big', -1)
0L
>>> cache.get('big')
4294967296L
>>> cache.incr('big', 1)
1L
>>> cache.get('big')
4294967297L

incr('value') and get('value') shouldn't be returning different results.

@lericson lericson closed this in ab4b793 Feb 20, 2012
@lericson lericson added a commit that referenced this issue Mar 29, 2016
@lericson Remove useless overflow check
Refs #73, #74
5840a99
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment