Use enum value when handling shss
This commit is contained in:
parent
0e535da2a7
commit
d57a686df9
|
@ -562,7 +562,7 @@ int liberasurecode_decode(int desc,
|
|||
goto out;
|
||||
}
|
||||
|
||||
if (instance->common.id != 5) {
|
||||
if (instance->common.id != EC_BACKEND_SHSS) {
|
||||
/* shss (ntt_backend) must force to decode */
|
||||
// TODO: Add a frag and function to handle whether the backend want to decode or not.
|
||||
/*
|
||||
|
|
|
@ -643,7 +643,7 @@ static void encode_decode_test_impl(const ec_backend_id_t be_id,
|
|||
char *data_ptr = frag + frag_header_size;
|
||||
int cmp_size = remaining >= metadata.size ? metadata.size : remaining;
|
||||
// shss doesn't keep original data on data fragments
|
||||
if (be_id != 5) {
|
||||
if (be_id != EC_BACKEND_SHSS) {
|
||||
assert(memcmp(data_ptr, orig_data_ptr, cmp_size) == 0);
|
||||
}
|
||||
remaining -= cmp_size;
|
||||
|
|
Loading…
Reference in New Issue