From ec1c381e041f5bbd31d01418b4e9280eaca11877 Mon Sep 17 00:00:00 2001 From: Mattias Andrée Date: Mon, 6 Sep 2021 18:04:23 +0200 Subject: Test and fix support for plural/definite form for ordinals MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: Mattias Andrée --- swedish.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'swedish.c') diff --git a/swedish.c b/swedish.c index d539793..08d46af 100644 --- a/swedish.c +++ b/swedish.c @@ -238,7 +238,7 @@ libnumtext_num2text_swedish__(char *outbuf, size_t outbuf_size, const char *num, if (INVALID_BITS(flags) || X_INVALID_TRIPLETS(flags)) goto einval; if (PLURAL_FORM(flags) || DEFINITE_FORM(flags)) - if (!ORDINAL(flags) || !DENOMINATOR(flags)) + if (!ORDINAL(flags) && !DENOMINATOR(flags)) goto einval; state.outbuf = outbuf; -- cgit v1.2.3-70-g09d2