From 8a5af352bf94a6a40ea5d91e03ad4516a7549e5e Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=C3=89milie=20Feral?= Date: Wed, 1 Apr 2020 16:12:47 +0200 Subject: [PATCH] [python] Fix warning: signed/unsigned int comparison --- python/test/execution_environment.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/python/test/execution_environment.cpp b/python/test/execution_environment.cpp index 4671d6a00..7fb6ae91c 100644 --- a/python/test/execution_environment.cpp +++ b/python/test/execution_environment.cpp @@ -22,7 +22,7 @@ void inlineToBeSingleInput(char * buffer, size_t bufferSize, const char * script bufferChar += strlcpy(buffer, openExec, bufferSize); const char * scriptChar = script; while (*scriptChar != 0) { - assert(bufferChar - buffer + 2 < bufferSize - 1); + assert(bufferChar - buffer + 2 < (int)bufferSize - 1); if (*scriptChar == '\n') { // Turn carriage return in {'\', 'n'} to be processed by exec *bufferChar++ = '\\'; @@ -33,7 +33,7 @@ void inlineToBeSingleInput(char * buffer, size_t bufferSize, const char * script scriptChar++; } bufferChar += strlcpy(bufferChar, closeExec, buffer + bufferSize - bufferChar); - assert(bufferChar - buffer < bufferSize); + assert(bufferChar - buffer < (int)bufferSize); *bufferChar = 0; }