Fix Types

dev
W. Felix Handte 2018-11-12 12:52:31 -08:00
parent 4127de5fa6
commit 2d9332eb21
1 changed files with 3 additions and 2 deletions

View File

@ -413,8 +413,9 @@ size_t ZSTD_CCtxParam_setParameter(
return CCtxParams->forceWindow;
case ZSTD_p_forceAttachDict : {
CLAMPCHECK(value, ZSTD_dictDefaultAttach, ZSTD_dictForceCopy);
CCtxParams->attachDictPref = value;
ZSTD_dictAttachPref_e pref = (ZSTD_dictAttachPref_e)value;
CLAMPCHECK(pref, ZSTD_dictDefaultAttach, ZSTD_dictForceCopy);
CCtxParams->attachDictPref = pref;
return CCtxParams->attachDictPref;
}