summaryrefslogtreecommitdiff
path: root/Python/errors.c
diff options
context:
space:
mode:
authorRaymond Hettinger <python@rcn.com>2015-01-18 16:06:18 -0800
committerRaymond Hettinger <python@rcn.com>2015-01-18 16:06:18 -0800
commit6bb9c148c9b893a8503ff7f0e92ac09e8e91de32 (patch)
tree05b0c213d5b0cb42548df2b7431eaa85b48e4c52 /Python/errors.c
parentdbf72b90f5ccfb388161815d84d3e1991c750180 (diff)
downloadcpython-6bb9c148c9b893a8503ff7f0e92ac09e8e91de32.tar.gz
Clean-up, simplify, and slightly speed-up bounds logic in set_pop().
Elsewhere in the setobject.c code we do a bitwise-and with the mask instead of using a conditional to reset to zero on wrap-around. Using that same technique here use gives cleaner, faster, and more consistent code.
Diffstat (limited to 'Python/errors.c')
0 files changed, 0 insertions, 0 deletions