Compare commits

..

1 Commits

Author SHA1 Message Date
hugogogo
71806cb923 fix superscript 1 2026-05-15 02:29:53 +02:00

View File

@@ -32,8 +32,10 @@ long long ft_atoll_superscript(const char *str)
int digit; int digit;
if (superscript_size == 2) if (superscript_size == 2)
{ {
// ² (U+00B2) or ³ (U+00B3) // ¹ (U+00B9), ² (U+00B2), or ³ (U+00B3)
if ((uint8_t)str[i + 1] == 0xB2) if ((uint8_t)str[i + 1] == 0xB9)
digit = 1;
else if ((uint8_t)str[i + 1] == 0xB2)
digit = 2; digit = 2;
else if ((uint8_t)str[i + 1] == 0xB3) else if ((uint8_t)str[i + 1] == 0xB3)
digit = 3; digit = 3;