mirror of
https://github.com/ArthurSonzogni/FTXUI.git
synced 2025-09-29 16:39:34 +08:00
Resolve compile error on cygwin. (#151)
This should solve issue: https://github.com/ArthurSonzogni/FTXUI/issues/149
This commit is contained in:
@@ -1,8 +1,9 @@
|
||||
#include "ftxui/component/terminal_input_parser.hpp"
|
||||
|
||||
#include <algorithm> // for max
|
||||
#include <memory> // for unique_ptr
|
||||
#include <utility> // for move
|
||||
#include <cstdint>
|
||||
#include <memory> // for unique_ptr
|
||||
#include <utility> // for move
|
||||
|
||||
#include "ftxui/component/event.hpp" // for Event
|
||||
|
||||
@@ -129,7 +130,7 @@ TerminalInputParser::Output TerminalInputParser::ParseUTF8() {
|
||||
}
|
||||
|
||||
// Accumulate the value of the first byte.
|
||||
wchar_t value = head & ~mask;
|
||||
uint32_t value = head & ~mask;
|
||||
|
||||
// Invalid UTF8, with more than 5 bytes.
|
||||
if (first_zero == 1 || first_zero >= 5)
|
||||
|
Reference in New Issue
Block a user