|
4 | 4 | from |
5 | 5 | DeflatePlugin VMMaker-bf.353 uuid: 8ae25e7e-8d2c-451e-8277-598b30e9c002 |
6 | 6 | */ |
| 7 | +/* |
| 8 | + Manual fixes: |
| 9 | + 2022-01-15 VMMaker.oscog-mt.3135 and VMMaker.oscog-mt.3136 |
| 10 | +*/ |
7 | 11 |
|
8 | 12 | (function ZipPlugin() { |
9 | 13 | "use strict"; |
@@ -260,7 +264,7 @@ function deflateBlockchainLengthgoodMatch(lastIndex, chainLength, goodMatch) { |
260 | 264 | } |
261 | 265 |
|
262 | 266 |
|
263 | | -/* Determine the inst size of the class above DeflateStream by |
| 267 | +/* Determine the inst size of the class above InflateStream by |
264 | 268 | looking for the first class whose inst size is less than 13. */ |
265 | 269 |
|
266 | 270 | function determineSizeOfReadStream(rcvr) { |
@@ -540,8 +544,8 @@ function loadZipEncoderFrom(rcvr) { |
540 | 544 | /* zipWriteLimit := interpreterProxy fetchInteger: 3 ofObject: rcvr. */ |
541 | 545 |
|
542 | 546 | zipReadLimit = interpreterProxy.fetchIntegerofObject(2, rcvr); |
543 | | - zipBitBuf = interpreterProxy.fetchIntegerofObject(writeStreamInstSize + 1, rcvr); |
544 | | - zipBitPos = interpreterProxy.fetchIntegerofObject(writeStreamInstSize + 2, rcvr); |
| 547 | + zipBitBuf = interpreterProxy.fetchIntegerofObject(writeStreamInstSize + 0, rcvr); |
| 548 | + zipBitPos = interpreterProxy.fetchIntegerofObject(writeStreamInstSize + 1, rcvr); |
545 | 549 | return !interpreterProxy.failed(); |
546 | 550 | } |
547 | 551 |
|
@@ -853,8 +857,8 @@ function primitiveZipSendBlock() { |
853 | 857 | result = sendBlockwithwithwith(litStream, distStream, litTree, distTree); |
854 | 858 | if (!interpreterProxy.failed()) { |
855 | 859 | interpreterProxy.storeIntegerofObjectwithValue(1, rcvr, zipPosition); |
856 | | - interpreterProxy.storeIntegerofObjectwithValue(readStreamInstSize + 1, rcvr, zipBitBuf); |
857 | | - interpreterProxy.storeIntegerofObjectwithValue(readStreamInstSize + 2, rcvr, zipBitPos); |
| 860 | + interpreterProxy.storeIntegerofObjectwithValue(writeStreamInstSize + 0, rcvr, zipBitBuf); |
| 861 | + interpreterProxy.storeIntegerofObjectwithValue(writeStreamInstSize + 1, rcvr, zipBitPos); |
858 | 862 | } |
859 | 863 | if (!interpreterProxy.failed()) { |
860 | 864 | interpreterProxy.pop(5); |
|
0 commit comments