summaryrefslogtreecommitdiff
path: root/core/fpdfapi/parser/cpdf_parser.cpp
diff options
context:
space:
mode:
authorthestig <thestig@chromium.org>2016-10-12 09:37:28 -0700
committerCommit bot <commit-bot@chromium.org>2016-10-12 09:37:28 -0700
commit47cbc06ef6f528e4d30a869ec533d010ee79b064 (patch)
treeebe4ee69194e32de371999268749cef7ef114305 /core/fpdfapi/parser/cpdf_parser.cpp
parenta30537f8b07492489e81414c9037af90c8b1448e (diff)
downloadpdfium-47cbc06ef6f528e4d30a869ec533d010ee79b064.tar.xz
Optimize roll operator in CPDF_PSEngine.
Rolling 0 times is a no-op. Rolling 0 items is a no-op. Rolling N items J times is the same as rolling N items J % N times. This also avoids an integer overflow corner case. BUG=chromium:648077 Review-Url: https://codereview.chromium.org/2412833002
Diffstat (limited to 'core/fpdfapi/parser/cpdf_parser.cpp')
0 files changed, 0 insertions, 0 deletions