Changeset 7172 for trunk/src/core/org


Ignore:
Timestamp:
Jun 9, 2016, 10:53:15 AM (7 years ago)
Author:
Nicklas Nordborg
Message:

References #2006 and #2016.

Changes the bytesWritten varible from int to long. This seems to trigger a proper close(). The saved file is 10 bytes larger than before and there are no errors when reading it from BASE or when testing it with 7z.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/core/org/anarres/parallelgzip/ParallelGZIPOutputStream.java

    r7171 r7172  
    9595    private Block block = new Block(/* 0 */);
    9696    /** Used as a sentinel for 'closed'. */
    97     private int bytesWritten = 0;
     97    private long bytesWritten = 0;
    9898
    9999    // Master thread only
     
    249249            // LOG.info("CRC is " + crc.getValue());
    250250            buf.putInt((int) crc.getValue());
    251             buf.putInt(bytesWritten);
     251            buf.putInt((int)bytesWritten);
    252252            out.write(buf.array()); // allocate() guarantees a backing array.
    253253            // LOG.info("trailer is " + Arrays.toString(buf.array()));
Note: See TracChangeset for help on using the changeset viewer.