Skip to content

Commit 115dc1b

Browse files
committed
Fix failing LargeInteger prim (OMG)
1 parent 6666118 commit 115dc1b

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

vm.interpreter.proxy.js

+2-2
Original file line numberDiff line numberDiff line change
@@ -235,8 +235,8 @@ Object.subclass('Squeak.InterpreterProxy',
235235
},
236236
stObjectatput: function(array, index, obj) {
237237
if (array.sqClass !== this.classArray()) throw Error("Array expected");
238-
if (index < 1 || index >= array.pointers.length) return this.successFlag = false;
239-
array.pointers[index] = obj;
238+
if (index < 1 || index > array.pointers.length) return this.successFlag = false;
239+
array.pointers[index-1] = obj;
240240
},
241241
},
242242
'constant access',

0 commit comments

Comments
 (0)