Comparing version 3.1.0 to 3.2.0
@@ -19,3 +19,3 @@ // Generated by CoffeeScript 1.7.1 | ||
} | ||
crc = ~~previous || 0xffff; | ||
crc = previous != null ? ~~previous : 0xffff; | ||
for (_i = 0, _len = buf.length; _i < _len; _i++) { | ||
@@ -22,0 +22,0 @@ byte = buf[_i]; |
@@ -19,3 +19,3 @@ // Generated by CoffeeScript 1.7.1 | ||
} | ||
crc = ~~previous || 0xffff; | ||
crc = previous != null ? ~~previous : 0xffff; | ||
for (_i = 0, _len = buf.length; _i < _len; _i++) { | ||
@@ -22,0 +22,0 @@ byte = buf[_i]; |
@@ -19,3 +19,3 @@ // Generated by CoffeeScript 1.7.1 | ||
} | ||
crc = ~~previous || 0xb704ce; | ||
crc = previous != null ? ~~previous : 0xb704ce; | ||
for (_i = 0, _len = buf.length; _i < _len; _i++) { | ||
@@ -22,0 +22,0 @@ byte = buf[_i]; |
@@ -19,3 +19,3 @@ // Generated by CoffeeScript 1.7.1 | ||
} | ||
crc = ~~previous ^ -1; | ||
crc = previous === 0 ? 0 : ~~previous ^ -1; | ||
for (_i = 0, _len = buf.length; _i < _len; _i++) { | ||
@@ -22,0 +22,0 @@ byte = buf[_i]; |
{ | ||
"name": "crc", | ||
"version": "3.1.0", | ||
"version": "3.2.0", | ||
"description": "Various CRC JavaScript implementations", | ||
@@ -5,0 +5,0 @@ "keywords": [ |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
27048