]> git.ipfire.org Git - thirdparty/zstd.git/commitdiff
updated windres
authorPrzemyslaw Skibinski <inikep@gmail.com>
Thu, 17 Nov 2016 17:04:41 +0000 (18:04 +0100)
committerPrzemyslaw Skibinski <inikep@gmail.com>
Thu, 17 Nov 2016 17:04:41 +0000 (18:04 +0100)
lib/compress/zstd_compress.c
programs/windres/zstd32.res
programs/windres/zstd64.res

index d152d10dc006ba800825aa8b7ea99f11b1951a1f..f7286ae8f1b353238b521999c2ab16f241432652 100644 (file)
@@ -739,8 +739,8 @@ MEM_STATIC void ZSTD_storeSeq(seqStore_t* seqStorePtr, size_t litLength, const v
 {
 #if 0  /* for debug */
     static const BYTE* g_start = NULL;
-    const U32 pos = (U32)(literals - g_start);
-    if (g_start==NULL) g_start = literals;
+    const U32 pos = (U32)((const BYTE*)literals - g_start);
+    if (g_start==NULL) g_start = (const BYTE*)literals;
     //if ((pos > 1) && (pos < 50000))
         printf("Cpos %6u :%5u literals & match %3u bytes at distance %6u \n",
                pos, (U32)litLength, (U32)matchCode+MINMATCH, (U32)offsetCode);
index aec8fcf24e4f15e1915af725ba5b957fa3e7b50a..6135dc431fed231ce2143b394625bc0b52b0615a 100644 (file)
Binary files a/programs/windres/zstd32.res and b/programs/windres/zstd32.res differ
index 0fa5040fdcbbefa37181a94ef937804049e80bb9..d3299e4b8bc0167db116201aa223615ec8f185f4 100644 (file)
Binary files a/programs/windres/zstd64.res and b/programs/windres/zstd64.res differ