Fix post-processing step to match C code.

The code needs to use an unsigned right-shift to match the original
C code using unsigned integers. I don't know if this affects the
quality of the output, but it can't hurt to match the original code.