From aaf228e7ed8cc0e8a43840db8caf416bfdd3346f Mon Sep 17 00:00:00 2001 From: Roberto Scolaro Date: Fri, 1 Dec 2023 16:53:15 +0000 Subject: [PATCH] fix(sinspui): removed MAX macro Signed-off-by: Roberto Scolaro --- userspace/sinspui/cursesui.cpp | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/userspace/sinspui/cursesui.cpp b/userspace/sinspui/cursesui.cpp index 1afe7eb07e..30bf4b73bb 100644 --- a/userspace/sinspui/cursesui.cpp +++ b/userspace/sinspui/cursesui.cpp @@ -18,6 +18,7 @@ limitations under the License. */ #include +#include #include "sinsp.h" #include "sinsp_int.h" #include "filter.h" @@ -944,8 +945,8 @@ void sinsp_cursesui::draw_bottom_menu(vector* items, bool i attrset(m_colors[PROCESS]); string fks = items->at(j).m_key; - mvaddnstr(m_screenh - 1, k, fks.c_str(), MAX(fks.size(), 2)); - k += MAX(fks.size(), 2); + mvaddnstr(m_screenh - 1, k, fks.c_str(), std::max(fks.size(), 2)); + k += std::max(fks.size(), 2); attrset(m_colors[PANEL_HIGHLIGHT_FOCUS]); fks = items->at(j).m_desc;