mangle: use HF_MAX whenever possible
@@ -849,18 +849,13 @@ void mangle_mangleContent(run_t* run, unsigned slow_factor) {
changesCnt = util_rndGet(1, run->global->mutate.mutationsPerRun);
break;
case 6 ... 10:
- changesCnt =
- (run->global->mutate.mutationsPerRun > 5) ? run->global->mutate.mutationsPerRun : 5;
+ changesCnt = HF_MAX(run->global->mutate.mutationsPerRun, 5);
break;
case 11 ... 15:
- changesCnt = (run->global->mutate.mutationsPerRun > 10)
- ? run->global->mutate.mutationsPerRun
- : 10;
+ changesCnt = HF_MAX(run->global->mutate.mutationsPerRun, 10);
break;
default:
- changesCnt = (run->global->mutate.mutationsPerRun > 20)
- ? run->global->mutate.mutationsPerRun
- : 20;
+ changesCnt = HF_MAX(run->global->mutate.mutationsPerRun, 20);
break;
}
