summaryrefslogtreecommitdiffstats
path: root/swedish.c
diff options
context:
space:
mode:
authorMattias Andrée <maandree@kth.se>2021-09-06 18:45:17 +0200
committerMattias Andrée <maandree@kth.se>2021-09-06 18:45:17 +0200
commitb9726dac2f32602699fb767995c3508629af9ee2 (patch)
tree5a8b485468b626b92ff0dab8ecd03585e4fcaaab /swedish.c
parentFix typo (diff)
downloadlibnumtext-b9726dac2f32602699fb767995c3508629af9ee2.tar.gz
libnumtext-b9726dac2f32602699fb767995c3508629af9ee2.tar.bz2
libnumtext-b9726dac2f32602699fb767995c3508629af9ee2.tar.xz
Test fix some denominators
Signed-off-by: Mattias Andrée <maandree@kth.se>
Diffstat (limited to '')
-rw-r--r--swedish.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/swedish.c b/swedish.c
index 08d46af..0322b2d 100644
--- a/swedish.c
+++ b/swedish.c
@@ -94,7 +94,7 @@ static struct ten {
static const char *wholes_and_halves[][5] = {
{"Hel", "He¦la", "Hel¦an", "Hel¦or¦na", "Hel¦te"},
- {"Halv", "Hal¦va", "Halv¦an", "Halv¦or¦na", "Half¦te"}
+ {"Halv", "Hal¦vor", "Halv¦an", "Halv¦or¦na", "Half¦te"}
};
static const char *great_suffixes[] = {
@@ -285,7 +285,7 @@ libnumtext_num2text_swedish__(char *outbuf, size_t outbuf_size, const char *num,
i = 4;
else
i = (size_t)((flags / LIBNUMTEXT_N2T_SWEDISH_PLURAL_FORM) & 3);
- append(&state, wholes_and_halves[num[0] - 1][i]);
+ append(&state, wholes_and_halves[num[0] - '1'][i]);
goto out;
}
}