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

@ -41,7 +41,7 @@ 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"

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;
} }