diff options
Diffstat (limited to 'libcharconv_transposed.c')
| -rw-r--r-- | libcharconv_transposed.c | 8 |
1 files changed, 1 insertions, 7 deletions
diff --git a/libcharconv_transposed.c b/libcharconv_transposed.c index af2a835..e73dcbc 100644 --- a/libcharconv_transposed.c +++ b/libcharconv_transposed.c @@ -22,13 +22,7 @@ libcharconv_transposed(const char *s, size_t slen, size_t *n, uint_least32_t *cp continue; } - if (UINT32_C(0x1F030) <= c && c <= UINT32_C(0x1F061)) { - c += 0x32u; - goto conv; - } else if (UINT32_C(0x1F062) <= c && c <= UINT32_C(0x1F093)) { - c -= 0x32u; - goto conv; - } + PLAIN_RANGE_SWAP(0x1F030, 0x1F061, 0x1F062, 0x1F093); *n += clen; s = &s[clen]; |
