mirror of
https://github.com/fish-shell/fish-shell.git
synced 2025-01-20 00:42:47 +08:00
Fix for a busted assertion
This commit is contained in:
parent
ddb37a47da
commit
471f7f06f7
|
@ -559,7 +559,7 @@ void parser_t::error(int ec, size_t p, const wchar_t *str, ...)
|
|||
|
||||
error_code = ec;
|
||||
|
||||
assert(p <= INT_MAX);
|
||||
// note : p may be -1
|
||||
err_pos = static_cast<int>(p);
|
||||
|
||||
va_start(va, str);
|
||||
|
|
Loading…
Reference in New Issue
Block a user