jshint/jshint — Issue #439: "Incorrect use of <<" warning is shown in checksum code.
Author: ssg
Created: 2012-02-05 22:00:14+00:00
State: open

The code below causes warnings for almost all operators in the code. I believe the warnings are false positives.

function adler32(input) {
var adlerModulo = 65521, index, a = 1, b = 0;
for (index = 0; index < input.length; index++) {
a = (a + input.charCodeAt(index)) % adlerModulo;
b = (b + a) % adlerModulo;
}
return (b << 16) | (a & 0xFFFF);
};