diff --git a/src/lib/misc.c b/src/lib/misc.c index 759e2e6..b89979f 100644 --- a/src/lib/misc.c +++ b/src/lib/misc.c @@ -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); }