keep limits symmetric

This commit is contained in:
Ahmet Inan 2023-12-13 20:38:45 +01:00
commit 859b64ef0e

View file

@ -309,7 +309,7 @@ struct Decoder
soft[i] = std::min<value>(std::max<value>(
std::nearbyint(127 * demod_or_erase(
fdom[bin(i+mls1_off)], fdom[bin(i-1+mls1_off)]).real()),
-128), 127);
-127), 127);
bool unique = osddec(data, soft, genmat);
if (!unique) {
std::cerr << "OSD error." << std::endl;