Browse Source

Fix conversion from 'size_t' to 'int' warning

Paul-Louis Ageneau 2 years ago
parent
commit
5f4f7916ec
1 changed files with 1 additions and 1 deletions
  1. 1 1
      src/capi.cpp

+ 1 - 1
src/capi.cpp

@@ -309,7 +309,7 @@ public:
 			return msg;
 		}
 
-		auto res = incomingCallback(reinterpret_cast<void *>(msg->data()), msg->size());
+		auto res = incomingCallback(reinterpret_cast<void *>(msg->data()), int(msg->size()));
 
 		// If a null pointer was returned, drop the incoming message
 		if (res == nullptr) {