mirror of
https://github.com/hashcat/hashcat.git
synced 2025-02-22 12:32:04 +00:00
Run through Clang's performance-type-promotion-in-math-fn
Only changed log2 to log2f. Rightly so.
This commit is contained in:
parent
dca1a86315
commit
df618e861e
@ -794,7 +794,7 @@ float get_entropy (const u8 *buf, const int len)
|
|||||||
|
|
||||||
float w = (float) r / len;
|
float w = (float) r / len;
|
||||||
|
|
||||||
entropy += -w * log2 (w);
|
entropy += -w * log2f (w);
|
||||||
}
|
}
|
||||||
|
|
||||||
return entropy;
|
return entropy;
|
||||||
|
Loading…
Reference in New Issue
Block a user