From 18c34e3b41e1295ac8f46ea202f4d96bc2f0c851 Mon Sep 17 00:00:00 2001 From: Ruben Carlo Benante Date: Fri, 22 May 2026 19:45:50 -0300 Subject: [PATCH] IMPROVES-i3 both empties are equal (ratio 1.0) --- lib11sht.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/lib11sht.c b/lib11sht.c index 1f37528..5d4f277 100644 --- a/lib11sht.c +++ b/lib11sht.c @@ -82,8 +82,10 @@ static float shit11(char *s1, char *s2) len1 = strlen(s1); len2 = strlen(s2); + if(len1 == 0 && len2 == 0) + return 1.0; /* both empty == identical */ if(len1 == 0 || len2 == 0) - return 0.0; + return 0.0; /* one empty == no similarity */ int d[len1+1][len2+1];