James Taylor avatar James Taylor committed f68a93c

Small change so that seek can be called repeatedly (bug discovered in Pyrex
code yet to be checked in).

Comments (0)

Files changed (2)

 bzip-table : bzip-table.o micro-bunzip.o
 seek-bunzip : seek-bunzip.o micro-bunzip.o
+micro-bunzip : micro-bunzip.c
 test: bzip-table seek-bunzip
 	# Generate 10 megabytes of random data
 	dd if=/dev/random of=test_random.dat bs=1024k count=4
         /* Init the CRC for writing */
         bd->writeCRC = 0xffffffffUL;
+        /* Zero this so the current byte from before the seek is not written */
+        bd->writeCopies = 0;
         /* Decompress the block and write to stdout */
         for ( ; ; )
Tip: Filter by directory path e.g. /media app.js to search for public/media/app.js.
Tip: Use camelCasing e.g. ProjME to search for ProjectModifiedEvent.java.
Tip: Filter by extension type e.g. /repo .js to search for all .js files in the /repo directory.
Tip: Separate your search with spaces e.g. /ssh pom.xml to search for src/ssh/pom.xml.
Tip: Use ↑ and ↓ arrow keys to navigate and return to view the file.
Tip: You can also navigate files with Ctrl+j (next) and Ctrl+k (previous) and view the file with Ctrl+o.
Tip: You can also navigate files with Alt+j (next) and Alt+k (previous) and view the file with Alt+o.