1
0
mirror of https://github.com/mariadb-corporation/mariadb-columnstore-engine.git synced 2025-08-30 14:21:11 +03:00

Fix -Wtype-limits

This commit is contained in:
Alexey Antipovsky
2020-11-10 18:23:21 +00:00
parent f4a6294c95
commit 0e29b0b0f9
11 changed files with 75 additions and 19 deletions

View File

@@ -28,6 +28,7 @@ namespace bi = boost::interprocess;
#include "IDBPolicy.h"
#include "utils_utf8.h"
#include "crashtrace.h"
#include "checks.h"
using namespace std;
using namespace messageqcpp;
@@ -2594,7 +2595,7 @@ void processStatusMSG(messageqcpp::IOSocket* cfIos)
}
}
if ( PID < 0 )
if (!utils::is_nonnegative(PID))
PID = 0;
log.writeLog(__LINE__, "statusControl: Set Process " + moduleName + "/" + processName + + " State = " + oamState[state] + " PID = " + oam.itoa(PID), LOG_TYPE_DEBUG);