]> git.ipfire.org Git - thirdparty/zstd.git/commitdiff
get rid of some Visual C++ warnings
authorinikep <inikep@gmail.com>
Mon, 25 Apr 2016 13:23:09 +0000 (15:23 +0200)
committerinikep <inikep@gmail.com>
Mon, 25 Apr 2016 13:23:09 +0000 (15:23 +0200)
.gitattributes
lib/compress/zstd_compress.c
visual/2013/zstd/zstd.vcxproj

index b36a354d7d5b673d223f6d5b23dad6f32d227200..3959727b81922da133fea17936f6868991d88cdf 100644 (file)
@@ -10,7 +10,7 @@
 *.png binary
 
 # Visual Studio
-*.sln binary
-*.suo binary
+*.sln text eol=crlf
 *.vcxproj* text eol=crlf
-*.rc text eol=crlf
+*.suo binary
+*.rc binary
index 6e75d10edcc7d2877dcad15b17ef1bd58c129b74..7b07eb454b514af2f013a2d602a6b6b039694029 100644 (file)
@@ -218,7 +218,7 @@ static size_t ZSTD_resetCCtx_advanced (ZSTD_CCtx* zc,
     const size_t maxNbSeq = blockSize / divider;
     const size_t tokenSpace = blockSize + 11*maxNbSeq;
     const size_t chainSize = (params.cParams.strategy == ZSTD_fast) ? 0 : (1 << params.cParams.chainLog);
-    const size_t hSize = (size_t)(1 << params.cParams.hashLog);
+    const size_t hSize = ((size_t)1) << params.cParams.hashLog;
     const size_t h3Size = (zc->hashLog3) ? 1 << zc->hashLog3 : 0;
     const size_t tableSpace = (chainSize + hSize + h3Size) * sizeof(U32);
 
@@ -291,7 +291,7 @@ size_t ZSTD_copyCCtx(ZSTD_CCtx* dstCCtx, const ZSTD_CCtx* srcCCtx)
 
     /* copy tables */
     {   const size_t chainSize = (srcCCtx->params.cParams.strategy == ZSTD_fast) ? 0 : (1 << srcCCtx->params.cParams.chainLog);
-        const size_t hSize = (size_t)(1 << srcCCtx->params.cParams.hashLog);
+        const size_t hSize = ((size_t)1) << srcCCtx->params.cParams.hashLog;
         const size_t h3Size = (srcCCtx->hashLog3) ? 1 << srcCCtx->hashLog3 : 0;
         const size_t tableSpace = (chainSize + hSize + h3Size) * sizeof(U32);
         memcpy(dstCCtx->workSpace, srcCCtx->workSpace, tableSpace);
index 8e2c477983e0967bdd3683c1c005ba3dadd893fb..d31994d996ec2a33b3537eb2cae32b0efdf9c54f 100755 (executable)
       <PreprocessorDefinitions>WIN32;_DEBUG;_CONSOLE;%(PreprocessorDefinitions)</PreprocessorDefinitions>
       <TreatWarningAsError>false</TreatWarningAsError>
       <EnablePREfast>true</EnablePREfast>
-      <AdditionalOptions>/analyze:stacksize19000 %(AdditionalOptions)</AdditionalOptions>
+      <AdditionalOptions>/analyze:stacksize25000 %(AdditionalOptions)</AdditionalOptions>
     </ClCompile>
     <Link>
       <SubSystem>Console</SubSystem>