From 8a6a0f004c1a967e19be1e1334e44e0f80bb1d9b Mon Sep 17 00:00:00 2001 From: Vitaly Puzrin Date: Wed, 12 Mar 2014 03:34:22 +0400 Subject: [PATCH] removed unnecessary uint64 cast --- lib/zlib/adler32.js | 2 +- lib/zlib/inflate.js | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/lib/zlib/adler32.js b/lib/zlib/adler32.js index f24df0c..299d10a 100644 --- a/lib/zlib/adler32.js +++ b/lib/zlib/adler32.js @@ -22,7 +22,7 @@ function adler32(adler, buf, len, pos) { s2 %= 65521; } - return (s1 | (s2 << 16)) >>> 0; + return (s1 | (s2 << 16)); } diff --git a/lib/zlib/inflate.js b/lib/zlib/inflate.js index 8957431..8e3f348 100644 --- a/lib/zlib/inflate.js +++ b/lib/zlib/inflate.js @@ -506,7 +506,7 @@ function inflate(strm, flush) { return (((q >>> 24) & 0xff) + ((q >>> 8) & 0xff00) + ((q & 0xff00) << 8) + - ((q & 0xff) << 24)) >>> 0; + ((q & 0xff) << 24)); } /*