From f36004b511a0cf819887fe5a038b6e969be00a79 Mon Sep 17 00:00:00 2001 From: Intel A80486DX2-66 Date: Tue, 19 Nov 2024 22:15:21 +0300 Subject: [PATCH] corrupter.c: remove superfluous curly brackets --- src/corrupter.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/src/corrupter.c b/src/corrupter.c index 29d4c58..5e26314 100644 --- a/src/corrupter.c +++ b/src/corrupter.c @@ -62,12 +62,11 @@ enum Interoperation_Result corrupt_byte(Interoperation_Input_Vars) { bool bit_mask[CHAR_BIT] = {false}; uint8_t probability = param->probability; - for (byte bit = 0; bit < CHAR_BIT; bit++) { + for (byte bit = 0; bit < CHAR_BIT; bit++) if (get_chance(probability) && damage_left > 0) { bit_mask[bit] = true; damage_left--; } - } bool damaged_byte = false; file_offset_t threshold = (file_offset_t) param->threshold;