1
0
mirror of https://git.disroot.org/80486DX2-66/polonium.git synced 2024-12-27 07:30:23 +05:30

corrupter.c: remove superfluous curly brackets

This commit is contained in:
Intel A80486DX2-66 2024-11-19 22:15:21 +03:00
parent 5b373c8d54
commit f36004b511
Signed by: 80486DX2-66
GPG Key ID: 83631EF27054609B

View File

@ -62,12 +62,11 @@ enum Interoperation_Result corrupt_byte(Interoperation_Input_Vars) {
bool bit_mask[CHAR_BIT] = {false}; bool bit_mask[CHAR_BIT] = {false};
uint8_t probability = param->probability; 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) { if (get_chance(probability) && damage_left > 0) {
bit_mask[bit] = true; bit_mask[bit] = true;
damage_left--; damage_left--;
} }
}
bool damaged_byte = false; bool damaged_byte = false;
file_offset_t threshold = (file_offset_t) param->threshold; file_offset_t threshold = (file_offset_t) param->threshold;