Switch Unconditional RETURN_ERROR_IF Calls to RETURN_ERROR

This commit is contained in:
W. Felix Handte
2019-01-28 12:45:34 -05:00
parent a3538bbc6f
commit 800c87fed0
2 changed files with 10 additions and 10 deletions
+2 -2
View File
@@ -227,7 +227,7 @@ size_t ZSTD_decodeLiteralsBlock(ZSTD_DCtx* dctx,
return lhSize+1;
}
default:
RETURN_ERROR_IF(1, corruption_detected, "impossible");
RETURN_ERROR(corruption_detected, "impossible");
}
}
}
@@ -470,7 +470,7 @@ static size_t ZSTD_buildSeqTable(ZSTD_seqSymbol* DTableSpace, const ZSTD_seqSymb
}
default :
assert(0);
RETURN_ERROR_IF(1, GENERIC, "impossible");
RETURN_ERROR(GENERIC, "impossible");
}
}