mirror of
https://github.com/fish-shell/fish-shell
synced 2024-12-25 20:33:08 +00:00
Fix for compile error identified in
https://github.com/fish-shell/fish-shell/issues/1142
This commit is contained in:
parent
b04fc5a39e
commit
9f5547327e
1 changed files with 6 additions and 1 deletions
|
@ -1197,7 +1197,12 @@ static size_t read_unquoted_escape(const wchar_t *input, wcstring *result, bool
|
|||
case L'U':
|
||||
{
|
||||
chars=8;
|
||||
max_val = mini(WCHAR_MAX, 0x10FFFF); // Largest Unicode code point - see #1107
|
||||
max_val = WCHAR_MAX;
|
||||
|
||||
// Don't exceed the largest Unicode code point - see #1107
|
||||
if (0x10FFFF < max_val)
|
||||
max_val = (wchar_t)0x10FFFF;
|
||||
|
||||
break;
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue