DescriptionOptimize 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
Committed: https://pdfium.googlesource.com/pdfium/+/47cbc06ef6f528e4d30a869ec533d010ee79b064
Patch Set 1 #
Messages
Total messages: 11 (7 generated)
|