Skip to content
Snippets Groups Projects
S

sgi2y4m

Project ID: 153
Ralph Giles's avatar
Ralph Giles authored
The output code uses (width + n) >> k to round up to the
nearest boundary in calculating buffer sizes. Because
many people are uncertain about the relative precedence
of addition and shift operations, gcc warned about the
code as-written.

Abstract the calculation into a local variable for better
readability and add parentheses to address the warning.
ed7d6ef4
History
Name Last commit Last update