From 27d6839f46d4d88aaa62702e70c200e7407f3c0b Mon Sep 17 00:00:00 2001 From: Kenta Kato Date: Tue, 26 Mar 2024 16:17:07 +0900 Subject: [PATCH] fix compiler warning --- src/impl/list_ports/list_ports_linux.cc | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/impl/list_ports/list_ports_linux.cc b/src/impl/list_ports/list_ports_linux.cc index db2afb2..b6f1f66 100644 --- a/src/impl/list_ports/list_ports_linux.cc +++ b/src/impl/list_ports/list_ports_linux.cc @@ -63,7 +63,7 @@ glob(const vector& patterns) glob_retval = glob(iter->c_str(), GLOB_APPEND, NULL, &glob_results); } - for(int path_index = 0; path_index < glob_results.gl_pathc; path_index++) + for(size_t path_index = 0; path_index < glob_results.gl_pathc; path_index++) { paths_found.push_back(glob_results.gl_pathv[path_index]); } @@ -243,7 +243,7 @@ format(const char* format, ...) { done = true; } - else if( return_value >= buffer_size_bytes ) + else if( return_value >= static_cast(buffer_size_bytes) ) { // Realloc and try again.