aboutsummaryrefslogtreecommitdiffstats
path: root/libcharconv_latin.c
diff options
context:
space:
mode:
authorMattias Andrée <m@maandree.se>2026-01-24 23:24:26 +0100
committerMattias Andrée <m@maandree.se>2026-01-24 23:24:26 +0100
commit7c4b779797c4297e028ddc2ee5243a8156ebba9b (patch)
tree483633a63f8cfb8cfef9711961f1fe8cd387e9de /libcharconv_latin.c
parentAdd clock faces (diff)
downloadcharconv-7c4b779797c4297e028ddc2ee5243a8156ebba9b.tar.gz
charconv-7c4b779797c4297e028ddc2ee5243a8156ebba9b.tar.bz2
charconv-7c4b779797c4297e028ddc2ee5243a8156ebba9b.tar.xz
Improve go
Signed-off-by: Mattias Andrée <m@maandree.se>
Diffstat (limited to 'libcharconv_latin.c')
-rw-r--r--libcharconv_latin.c6
1 files changed, 4 insertions, 2 deletions
diff --git a/libcharconv_latin.c b/libcharconv_latin.c
index 7c70318..5179388 100644
--- a/libcharconv_latin.c
+++ b/libcharconv_latin.c
@@ -358,13 +358,15 @@ libcharconv_latin(const char *s, size_t slen, size_t *n, uint_least32_t *cp, siz
case UINT32_C(0x26C9): c = (uint_least32_t)'W'; goto conv;
case UINT32_C(0x26CA): c = (uint_least32_t)'B'; goto conv;
+ /* go (common) */
+ case UINT32_C(0x25CF): c = (uint_least32_t)'b'; goto conv;
+ case UINT32_C(0x25CB): c = (uint_least32_t)'w'; goto conv;
+
/* go (white) */
- case UINT32_C(0x25CB): c = (uint_least32_t)'0'; goto conv;
case UINT32_C(0x2686): c = (uint_least32_t)'1'; goto conv;
case UINT32_C(0x2687): c = (uint_least32_t)'2'; goto conv;
/* go (black) */
- case UINT32_C(0x25CF): c = (uint_least32_t)'0'; goto conv;
case UINT32_C(0x2688): c = (uint_least32_t)'1'; goto conv;
case UINT32_C(0x2689): c = (uint_least32_t)'2'; goto conv;