From af65ee0ef99ee7ce5cbacddd007d7e22222bd535 Mon Sep 17 00:00:00 2001 From: Johan Wikman Date: Thu, 3 Nov 2016 08:30:45 +0200 Subject: [PATCH] qc: Ensure type is uint32_t Some C++ compiler complains about signed being compared with unsigned. --- include/maxscale/query_classifier.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/include/maxscale/query_classifier.h b/include/maxscale/query_classifier.h index 02db99d5d..00a7688c5 100644 --- a/include/maxscale/query_classifier.h +++ b/include/maxscale/query_classifier.h @@ -401,7 +401,7 @@ const char* qc_op_to_string(qc_query_op_t op); */ static inline bool qc_query_is_type(uint32_t typemask, qc_query_type_t type) { - return (typemask & type) == type; + return (typemask & (uint32_t)type) == (uint32_t)type; } /**