mirror of
https://github.com/fish-shell/fish-shell
synced 2024-12-25 12:23:09 +00:00
escape_code_length: cast to size_t, not int
This commit is contained in:
parent
4ffc6e02b7
commit
14efcb7cc5
1 changed files with 1 additions and 1 deletions
|
@ -214,7 +214,7 @@ size_t escape_code_length(const wchar_t *code) {
|
|||
for (size_t p = 0; p < sizeof esc / sizeof *esc && !found; p++) {
|
||||
if (!esc[p]) continue;
|
||||
|
||||
for (size_t k = 0; k < std::min(16, static_cast<int>(max_colors)); k++) {
|
||||
for (size_t k = 0; k < std::min(16UL, static_cast<size_t>(max_colors)); k++) {
|
||||
size_t len = try_sequence(tparm(esc[p], k), code);
|
||||
if (len) {
|
||||
resulting_length = len;
|
||||
|
|
Loading…
Reference in a new issue