Skip to content
This repository has been archived by the owner on Apr 22, 2023. It is now read-only.

Commit

Permalink
buffer: don't pollute global namespace in buffer.readInt*
Browse files Browse the repository at this point in the history
  • Loading branch information
Phil Sung authored and bnoordhuis committed Dec 22, 2011
1 parent b261e37 commit cf2513e
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions lib/buffer.js
Expand Up @@ -698,7 +698,7 @@ Buffer.prototype.readInt8 = function(offset, noAssert) {
};

function readInt16(buffer, offset, isBigEndian, noAssert) {
var neg;
var neg, val;

if (!noAssert) {
assert.ok(typeof (isBigEndian) === 'boolean',
Expand Down Expand Up @@ -729,7 +729,7 @@ Buffer.prototype.readInt16BE = function(offset, noAssert) {
};

function readInt32(buffer, offset, isBigEndian, noAssert) {
var neg;
var neg, val;

if (!noAssert) {
assert.ok(typeof (isBigEndian) === 'boolean',
Expand Down

0 comments on commit cf2513e

Please sign in to comment.