From 139da372e713b072f8668dd074093a7ce2866d1c Mon Sep 17 00:00:00 2001 From: Kevin Hester Date: Sat, 3 Apr 2021 14:56:46 +0800 Subject: [PATCH] fix warning --- src/plugins/AdminPlugin.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/plugins/AdminPlugin.cpp b/src/plugins/AdminPlugin.cpp index 30016484e..3848bd2f6 100644 --- a/src/plugins/AdminPlugin.cpp +++ b/src/plugins/AdminPlugin.cpp @@ -56,7 +56,7 @@ bool AdminPlugin::handleReceivedProtobuf(const MeshPacket &mp, const AdminMessag case AdminMessage_set_channel_tag: DEBUG_MSG("Client is setting channel %d\n", r->set_channel.index); - if (r->set_channel.index < 0 || r->set_channel.index >= MAX_NUM_CHANNELS) + if (r->set_channel.index < 0 || r->set_channel.index >= (int)MAX_NUM_CHANNELS) reply = allocErrorResponse(Routing_Error_BAD_REQUEST, &mp); else handleSetChannel(r->set_channel);