From 14efcb7cc53ac8db583c32f15427ff13284befed Mon Sep 17 00:00:00 2001 From: Aaron Gyes Date: Sun, 9 Oct 2016 21:58:14 -0700 Subject: [PATCH] escape_code_length: cast to size_t, not int --- src/screen.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/screen.cpp b/src/screen.cpp index 88a97a2dd..40bc5cbee 100644 --- a/src/screen.cpp +++ b/src/screen.cpp @@ -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(max_colors)); k++) { + for (size_t k = 0; k < std::min(16UL, static_cast(max_colors)); k++) { size_t len = try_sequence(tparm(esc[p], k), code); if (len) { resulting_length = len;