From 3d18088b386e349fd51ddd11b765efe7d85577e8 Mon Sep 17 00:00:00 2001 From: Przemyslaw Skibinski Date: Thu, 17 Nov 2016 18:04:41 +0100 Subject: [PATCH] updated windres --- lib/compress/zstd_compress.c | 4 ++-- programs/windres/zstd32.res | Bin 1044 -> 1044 bytes programs/windres/zstd64.res | Bin 1044 -> 1044 bytes 3 files changed, 2 insertions(+), 2 deletions(-) diff --git a/lib/compress/zstd_compress.c b/lib/compress/zstd_compress.c index d152d10dc..f7286ae8f 100644 --- a/lib/compress/zstd_compress.c +++ b/lib/compress/zstd_compress.c @@ -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); diff --git a/programs/windres/zstd32.res b/programs/windres/zstd32.res index aec8fcf24e4f15e1915af725ba5b957fa3e7b50a..6135dc431fed231ce2143b394625bc0b52b0615a 100644 GIT binary patch delta 33 pcmbQjF@