Fossil SCM
Changed zlib crc type from int to unsigned long, as that's the type returned by zlib's crc32() and doing so reportedly resolves the CRC error reported in [forum:7a9097e557 | forum post 7a9097e557].
Commit
1bf6686e76252efda0abf7c64da8d5abb61c663187016ff77c4ac3f774988fc6
Parent
19a01ac12ea12a1…
2 files changed
+1
-1
+1
-1
+1
-1
| --- src/gzip.c | ||
| +++ src/gzip.c | ||
| @@ -29,11 +29,11 @@ | ||
| 29 | 29 | /* |
| 30 | 30 | ** State information for the GZIP file under construction. |
| 31 | 31 | */ |
| 32 | 32 | struct gzip_state { |
| 33 | 33 | int eState; /* 0: idle 1: header 2: compressing */ |
| 34 | - int iCRC; /* The checksum */ | |
| 34 | + unsigned long iCRC; /* The checksum */ | |
| 35 | 35 | z_stream stream; /* The working compressor */ |
| 36 | 36 | Blob out; /* Results stored here */ |
| 37 | 37 | } gzip; |
| 38 | 38 | |
| 39 | 39 | /* |
| 40 | 40 |
| --- src/gzip.c | |
| +++ src/gzip.c | |
| @@ -29,11 +29,11 @@ | |
| 29 | /* |
| 30 | ** State information for the GZIP file under construction. |
| 31 | */ |
| 32 | struct gzip_state { |
| 33 | int eState; /* 0: idle 1: header 2: compressing */ |
| 34 | int iCRC; /* The checksum */ |
| 35 | z_stream stream; /* The working compressor */ |
| 36 | Blob out; /* Results stored here */ |
| 37 | } gzip; |
| 38 | |
| 39 | /* |
| 40 |
| --- src/gzip.c | |
| +++ src/gzip.c | |
| @@ -29,11 +29,11 @@ | |
| 29 | /* |
| 30 | ** State information for the GZIP file under construction. |
| 31 | */ |
| 32 | struct gzip_state { |
| 33 | int eState; /* 0: idle 1: header 2: compressing */ |
| 34 | unsigned long iCRC; /* The checksum */ |
| 35 | z_stream stream; /* The working compressor */ |
| 36 | Blob out; /* Results stored here */ |
| 37 | } gzip; |
| 38 | |
| 39 | /* |
| 40 |
+1
-1
| --- src/zip.c | ||
| +++ src/zip.c | ||
| @@ -255,11 +255,11 @@ | ||
| 255 | 255 | ){ |
| 256 | 256 | z_stream stream; |
| 257 | 257 | int nameLen; |
| 258 | 258 | int toOut = 0; |
| 259 | 259 | int iStart; |
| 260 | - int iCRC = 0; | |
| 260 | + unsigned long iCRC = 0; | |
| 261 | 261 | int nByte = 0; |
| 262 | 262 | int nByteCompr = 0; |
| 263 | 263 | int nBlob; /* Size of the blob */ |
| 264 | 264 | int iMethod; /* Compression method. */ |
| 265 | 265 | int iMode = 0644; /* Access permissions */ |
| 266 | 266 |
| --- src/zip.c | |
| +++ src/zip.c | |
| @@ -255,11 +255,11 @@ | |
| 255 | ){ |
| 256 | z_stream stream; |
| 257 | int nameLen; |
| 258 | int toOut = 0; |
| 259 | int iStart; |
| 260 | int iCRC = 0; |
| 261 | int nByte = 0; |
| 262 | int nByteCompr = 0; |
| 263 | int nBlob; /* Size of the blob */ |
| 264 | int iMethod; /* Compression method. */ |
| 265 | int iMode = 0644; /* Access permissions */ |
| 266 |
| --- src/zip.c | |
| +++ src/zip.c | |
| @@ -255,11 +255,11 @@ | |
| 255 | ){ |
| 256 | z_stream stream; |
| 257 | int nameLen; |
| 258 | int toOut = 0; |
| 259 | int iStart; |
| 260 | unsigned long iCRC = 0; |
| 261 | int nByte = 0; |
| 262 | int nByteCompr = 0; |
| 263 | int nBlob; /* Size of the blob */ |
| 264 | int iMethod; /* Compression method. */ |
| 265 | int iMode = 0644; /* Access permissions */ |
| 266 |