fix: fixed issue with number with three digits featuring 11 or 12

This commit is contained in:
moonleay 2024-11-20 16:47:59 +01:00
parent 3b531d11c5
commit 3f979f143f
Signed by: moonleay
GPG key ID: 82667543CCD715FB

View file

@ -52,7 +52,7 @@ int main()
}
result.push_back(suffix);
if (input_length > 1 && (middle_digit < 11 || middle_digit > 12))
if (input_length > 1 && (last_two_digits < 11 || last_two_digits > 12))
result.push_back(middle_digit_strings[middle_digit]);
else
result.push_back("");