*really* fixed countUnusedKeySize result
result number was basically only even
This commit is contained in:
parent
c51002e100
commit
3421fb5b70
@ -343,7 +343,7 @@ unsigned long countUnusedKeySize(char *text, char *key)
|
|||||||
{
|
{
|
||||||
unsigned long returning = 0;
|
unsigned long returning = 0;
|
||||||
|
|
||||||
if (strlen(key) / 2 > strlen(text))
|
if ((long double) (strlen(key)) / 2 > strlen(text))
|
||||||
{
|
{
|
||||||
returning = strlen(key) - 2 * strlen(text);
|
returning = strlen(key) - 2 * strlen(text);
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user