fixed visual and clang errors

This commit is contained in:
Yann Collet 2016-01-21 15:50:11 +01:00
parent 977f1f3600
commit ffec740d37
2 changed files with 4 additions and 3 deletions

View File

@ -40,8 +40,8 @@ extern "C" {
/* ************************************* /* *************************************
* Includes * Includes
***************************************/ ***************************************/
#include "mem.h" /* MEM_STATIC */ #include "mem.h" /* MEM_STATIC */
#include "error.h" /* ERROR */ #include "error_private.h" /* ERROR */
#include "zstd_v01.h" #include "zstd_v01.h"
#include "zstd_v02.h" #include "zstd_v02.h"
#include "zstd_v03.h" #include "zstd_v03.h"
@ -51,7 +51,7 @@ MEM_STATIC unsigned ZSTD_isLegacy (U32 magicNumberLE)
switch(magicNumberLE) switch(magicNumberLE)
{ {
case ZSTDv01_magicNumberLE : case ZSTDv01_magicNumberLE :
case ZSTDv02_magicNumber : case ZSTDv02_magicNumber :
case ZSTDv03_magicNumber : return 1; case ZSTDv03_magicNumber : return 1;
default : return 0; default : return 0;
} }

View File

@ -1630,6 +1630,7 @@ static size_t ZSTD_decodeLiteralsBlock(void* ctx,
ip += litcSize; ip += litcSize;
break; break;
} }
case bt_end:
default: default:
return (size_t)-ZSTD_ERROR_GENERIC; return (size_t)-ZSTD_ERROR_GENERIC;
} }