diff --git a/app/Operations/MICD.cpp b/app/Operations/MICD.cpp index ab62a7637526caee6f3f4552dca7f40694572c5f..91782a9ab345be2e6f65d555637a23c61cf681d6 100644 --- a/app/Operations/MICD.cpp +++ b/app/Operations/MICD.cpp @@ -211,7 +211,7 @@ void MICD::codec(int nlq,int ier,int *icode,int *ireco) { void MICD::set_levels() { // Fills in iloiqu with the specified values - if( quantdef->size - 1 > 32 || quantdef->size - 1 < 1 ) { + if( quantdef->size - 1 > N_MAX_THRESHOLD || quantdef->size - 1 < 1 ) { char buffer[255]; sprintf( buffer, "Error in MICD::set_levels:\nquantdef->GetNumThresholds() = %d", quantdef->size - 1 ); throw buffer; @@ -249,7 +249,7 @@ void MICD::setQuantification( Quantification *tquantdef ) { if( tquantdef == NULL ) { throw "Error in MICD::setQuantDef:\ntquantdef = NULL"; } - if( tquantdef->size - 1 > 32 || tquantdef->size - 1 < 1 ) { + if( tquantdef->size - 1 > N_MAX_THRESHOLD || tquantdef->size - 1 < 1 ) { char buffer[255]; sprintf( buffer, "Error in MICD::setQuantDef:\ntquantdef->GetNumThresholds() = %d", tquantdef->size - 1 ); throw buffer;