Skip to content

Commit 2be2f1f

Browse files
committed
Fixed 'Compare' condition.
1 parent 6ea6db6 commit 2be2f1f

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

LibIPS.NET/LibIpsNet.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -312,7 +312,7 @@ public IpsError Create(Stream source, Stream target, ref Stream patch)
312312
if (byteshere > 8 + 5 ||
313313
// RLE-worthy at end of data.
314314
(byteshere > 8 && stopat + byteshere == thislen) ||
315-
(byteshere > 8 && !Compare(targetReader, (offset + stopat + byteshere), targetReader, (offset + stopat + byteshere + 1), 9 - 1)))//rle-worthy before another rle-worthy
315+
(byteshere > 8 && Compare(targetReader, (offset + stopat + byteshere), targetReader, (offset + stopat + byteshere + 1), 9 - 1)))//rle-worthy before another rle-worthy
316316
{
317317
if (stopat != 0) thislen = stopat;
318318
// We don't scan the entire block if we know we'll want to RLE, that'd gain nothing.

0 commit comments

Comments
 (0)