Skip to content
Prev Previous commit
Next Next commit
Fix argument order
  • Loading branch information
nshmyrev committed May 8, 2021
commit 749092176c993b462fb6339df3c3c6d1ea9ff9d2
2 changes: 1 addition & 1 deletion lib/ref.js
Original file line number Diff line number Diff line change
Expand Up @@ -930,7 +930,7 @@ types.int32 = {
return exports.readInt32(buf, offset || 0);
},
set: function set (buf, offset, val) {
return exports.writeInt32(buf, val, offset || 0);
return exports.writeInt32(buf, offset || 0, val);
}
}

Expand Down