diff --git a/packages/ti/ipc/family/tci6614/VirtQueue.c b/packages/ti/ipc/family/tci6614/VirtQueue.c
index 286cb5f53fe793be50e1f80f7bae62d482176328..c8e0f5b91c1a4ad2dc5f95ede901da624a968d79 100644 (file)
/*
- * Copyright (c) 2011-2015 Texas Instruments Incorporated - http://www.ti.com
+ * Copyright (c) 2011-2019 Texas Instruments Incorporated - http://www.ti.com
* All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
IArg key;
key = GateAll_enter(vq->gateH);
- if ((head > vring->num) || (head < 0)) {
+ if (((unsigned int)head > vring->num) || (head < 0)) {
Error_raise(NULL, Error_E_generic, 0, 0);
}
else {