From ffc453ebfde6f881f2aa99e0a3913cd290445d7c Mon Sep 17 00:00:00 2001 From: Ilya Lavrenov Date: Mon, 2 Mar 2015 16:41:06 +0300 Subject: [PATCH] fixed [-Wsign-compare] warning --- modules/core/src/system.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/modules/core/src/system.cpp b/modules/core/src/system.cpp index 8008746f5d..23617c84df 100644 --- a/modules/core/src/system.cpp +++ b/modules/core/src/system.cpp @@ -329,7 +329,7 @@ struct HWFeatures Elf32_auxv_t auxv; const size_t size_auxv_t = sizeof(Elf32_auxv_t); - while (read(cpufile, &auxv, sizeof(Elf32_auxv_t)) == size_auxv_t) + while ((size_t)read(cpufile, &auxv, sizeof(Elf32_auxv_t)) == size_auxv_t) { if (auxv.a_type == AT_HWCAP) {