mirror of
https://github.com/sheumann/hush.git
synced 2024-12-22 14:30:31 +00:00
comment fixes, no code changes
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
This commit is contained in:
parent
53fd1bf223
commit
f6106e6041
@ -2,7 +2,7 @@
|
|||||||
/*
|
/*
|
||||||
* Unicode support routines.
|
* Unicode support routines.
|
||||||
*
|
*
|
||||||
* Copyright (C) 2008 Denys Vlasenko
|
* Copyright (C) 2009 Denys Vlasenko
|
||||||
*
|
*
|
||||||
* Licensed under GPL version 2, see file LICENSE in this tarball for details.
|
* Licensed under GPL version 2, see file LICENSE in this tarball for details.
|
||||||
*/
|
*/
|
||||||
@ -84,6 +84,7 @@ static size_t wcrtomb_internal(char *s, wchar_t wc)
|
|||||||
wc >>= 6;
|
wc >>= 6;
|
||||||
n++;
|
n++;
|
||||||
}
|
}
|
||||||
|
/* 80-7FF -> 110yyyxx 10xxxxxx */
|
||||||
s[1] = (wc & 0x3f) | 0x80;
|
s[1] = (wc & 0x3f) | 0x80;
|
||||||
wc >>= 6;
|
wc >>= 6;
|
||||||
s[0] = wc | (uint8_t)(0x3f00 >> n);
|
s[0] = wc | (uint8_t)(0x3f00 >> n);
|
||||||
|
Loading…
Reference in New Issue
Block a user