diff options
| author | fusion32 <marcopuzziello@gmail.com> | 2025-11-18 19:16:46 -0300 |
|---|---|---|
| committer | fusion32 <marcopuzziello@gmail.com> | 2025-11-18 19:16:46 -0300 |
| commit | fedf1e954a21f3aae6d7ffc618c8405aff85a136 (patch) | |
| tree | a2197f2b89609fa8ac623e0d7ab9ef1421ac47da /src/main.cc | |
| parent | 62f4d9e4429bcfc3b8b30f8bf6d81656ed57721b (diff) | |
| download | login-fedf1e954a21f3aae6d7ffc618c8405aff85a136.tar.gz login-fedf1e954a21f3aae6d7ffc618c8405aff85a136.zip | |
a few adjustments
Diffstat (limited to 'src/main.cc')
| -rw-r--r-- | src/main.cc | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/src/main.cc b/src/main.cc index 637da2f..b7fec46 100644 --- a/src/main.cc +++ b/src/main.cc @@ -323,23 +323,23 @@ int UTF8EncodeOne(uint8 *Dest, int DestCapacity, int Codepoint){ } case 2:{ - Dest[0] = (uint8)(0xC0 | (0x1F & (Codepoint >> 6))); - Dest[1] = (uint8)(0x80 | (0x3F & (Codepoint >> 0))); + Dest[0] = (uint8)(0xC0 | (0x1F & (Codepoint >> 6))); + Dest[1] = (uint8)(0x80 | (0x3F & (Codepoint >> 0))); break; } case 3:{ Dest[0] = (uint8)(0xE0 | (0x0F & (Codepoint >> 12))); - Dest[1] = (uint8)(0x80 | (0x3F & (Codepoint >> 6))); - Dest[2] = (uint8)(0x80 | (0x3F & (Codepoint >> 0))); + Dest[1] = (uint8)(0x80 | (0x3F & (Codepoint >> 6))); + Dest[2] = (uint8)(0x80 | (0x3F & (Codepoint >> 0))); break; } case 4:{ Dest[0] = (uint8)(0xF0 | (0x07 & (Codepoint >> 18))); Dest[1] = (uint8)(0x80 | (0x3F & (Codepoint >> 12))); - Dest[2] = (uint8)(0x80 | (0x3F & (Codepoint >> 6))); - Dest[3] = (uint8)(0x80 | (0x3F & (Codepoint >> 0))); + Dest[2] = (uint8)(0x80 | (0x3F & (Codepoint >> 6))); + Dest[3] = (uint8)(0x80 | (0x3F & (Codepoint >> 0))); break; } } |
