From 3421fb5b70e3d1bb086621d05d7b51313fd37701 Mon Sep 17 00:00:00 2001 From: ENGO150 Date: Thu, 25 Aug 2022 10:52:05 +0200 Subject: [PATCH] *really* fixed countUnusedKeySize result result number was basically only even --- src/lib/misc.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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); }