]> git.ipfire.org Git - thirdparty/zstd.git/commitdiff
original size unknown
authorSoojin Nam <jsunam@gmail.com>
Tue, 21 Feb 2017 00:51:40 +0000 (09:51 +0900)
committerSoojin Nam <jsunam@gmail.com>
Tue, 21 Feb 2017 00:51:40 +0000 (09:51 +0900)
examples/dictionary_decompression.c
examples/simple_decompression.c

index 75183505dfd2670b431c78ced62e228c26577a7f..deaf3888e6c6a0f6dd8d1c311d553589816eb639 100644 (file)
@@ -78,7 +78,7 @@ static void decompress(const char* fname, const ZSTD_DDict* ddict)
     size_t cSize;
     void* const cBuff = loadFile_orDie(fname, &cSize);
     unsigned long long const rSize = ZSTD_findDecompressedSize(cBuff, cSize);
-    if (rSize==0) {
+    if (rSize==ZSTD_CONTENTSIZE_UNKNOWN) {
         fprintf(stderr, "%s : original size unknown \n", fname);
         exit(6);
     }
index 09b27baa62565ddbe0ad1fe67da09c7d35e22ba0..e23f148878f6a48dbcd60ff953ea6a93d5fb0467 100644 (file)
@@ -63,7 +63,7 @@ static void decompress(const char* fname)
     size_t cSize;
     void* const cBuff = loadFile_orDie(fname, &cSize);
     unsigned long long const rSize = ZSTD_findDecompressedSize(cBuff, cSize);
-    if (rSize==0) {
+    if (rSize==ZSTD_CONTENTSIZE_UNKNOWN) {
         printf("%s : original size unknown. Use streaming decompression instead. \n", fname);
         exit(5);
     }