*really* fixed countUnusedKeySize result

result number was basically only even
This commit is contained in:
Václav Šmejkal 2022-08-25 10:52:05 +02:00
parent c51002e100
commit 3421fb5b70
No known key found for this signature in database
GPG Key ID: FD749A97DF2D5E19

View File

@ -343,7 +343,7 @@ unsigned long countUnusedKeySize(char *text, char *key)
{
unsigned long returning = 0;
if (strlen(key) / 2 > strlen(text))
if ((long double) (strlen(key)) / 2 > strlen(text))
{
returning = strlen(key) - 2 * strlen(text);
}