summaryrefslogtreecommitdiffstats
path: root/swedish.c
diff options
context:
space:
mode:
Diffstat (limited to '')
-rw-r--r--swedish.c2
1 files changed, 1 insertions, 1 deletions
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;