mirror of
https://gitlab.com/sortix/sortix.git
synced 2023-02-13 20:55:38 -05:00
Silence uninitialized variable warning in wcrtomb(3).
This commit is contained in:
parent
140dfe22fc
commit
061eddff91
1 changed files with 1 additions and 0 deletions
|
|
@ -60,6 +60,7 @@ size_t wcrtomb(char* restrict s, wchar_t wc, mbstate_t* restrict /*ps*/)
|
|||
case 4: prefixavai = 3; prefix = 0b11110U << prefixavai; break;
|
||||
case 5: prefixavai = 2; prefix = 0b111110U << prefixavai; break;
|
||||
case 6: prefixavai = 1; prefix = 0b1111110U << prefixavai; break;
|
||||
default: __builtin_unreachable();
|
||||
}
|
||||
|
||||
// Put the first bits in the unused area of the prefix.
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue