mirror of
https://git.disroot.org/80486DX2-66/polonium.git
synced 2024-12-26 23:20:22 +05:30
corrupter.c: fix type of probability
This commit is contained in:
parent
c323245ae7
commit
290467bcd1
@ -61,7 +61,7 @@ enum Interoperation_Result corrupt_byte(Interoperation_Input_Vars) {
|
|||||||
// generate bit mask
|
// generate bit mask
|
||||||
byte damage_left = param->threshold;
|
byte damage_left = param->threshold;
|
||||||
bool bit_mask[CHAR_BIT] = {false};
|
bool bit_mask[CHAR_BIT] = {false};
|
||||||
uint8_t probability = param->probability;
|
uint16_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) {
|
||||||
|
Loading…
Reference in New Issue
Block a user