diff options
author | Mattias Andrée <maandree@kth.se> | 2021-09-06 18:45:17 +0200 |
---|---|---|
committer | Mattias Andrée <maandree@kth.se> | 2021-09-06 18:45:17 +0200 |
commit | b9726dac2f32602699fb767995c3508629af9ee2 (patch) | |
tree | 5a8b485468b626b92ff0dab8ecd03585e4fcaaab /swedish.c | |
parent | Fix typo (diff) | |
download | libnumtext-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.c | 4 |
1 files changed, 2 insertions, 2 deletions
@@ -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; } } |