Skip to content

Commit

Permalink
yet another SIGNEXTEND fix
Browse files Browse the repository at this point in the history
  • Loading branch information
cdetrio committed Jun 18, 2017
1 parent a90b936 commit 57951f3
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions lib/opFns.js
Original file line number Diff line number Diff line change
Expand Up @@ -133,6 +133,7 @@ module.exports = {
},
SIGNEXTEND: function (k, val, runState) {
k = new BN(k)
val = new Buffer(val) // use clone, don't modify object reference
var extendOnes = false

if (k.cmpn(31) <= 0) {
Expand Down

0 comments on commit 57951f3

Please sign in to comment.