Permalink
Browse files

Fixed encoded literal test

  • Loading branch information...
Matt Bell
Matt Bell committed Apr 25, 2012
1 parent 124a1ad commit df808dbe4036d3dd722d3449e203b9992ead4c83
Showing with 1 addition and 1 deletion.
  1. +1 −1 test/cpu_test.js
View
@@ -24,7 +24,7 @@ module.exports = {
// Encoded literals
for (var i = -1; i < 31; ++i) {
- assert.equal(cpu.addressFor(0x21 + i), i | CPU.FLAG_LITERAL);
+ assert.equal(cpu.addressFor(0x21 + i), (i & 0xffff) | CPU.FLAG_LITERAL);
}
// Stack operations

0 comments on commit df808db

Please sign in to comment.