mangoapp: fix comparison warning

This commit is contained in:
flightlessmango 2024-07-02 18:20:27 +02:00
parent c0afb84e9c
commit edf7546d8d

View File

@ -163,7 +163,7 @@ static void msg_read_thread(){
// make sure that the message recieved is compatible
// and that we're not trying to use variables that don't exist (yet)
size_t msg_size = msgrcv(msgid, (void *) raw_msg, sizeof(raw_msg), 1, 0);
if (msg_size != -1)
if (msg_size != size_t(-1))
{
if (hdr->version == 1){
if (msg_size > offsetof(struct mangoapp_msg_v1, visible_frametime_ns)){