summaryrefslogtreecommitdiff
path: root/src/lib
diff options
context:
space:
mode:
Diffstat (limited to 'src/lib')
-rw-r--r--src/lib/du_buff.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/lib/du_buff.c b/src/lib/du_buff.c
index bd1a092d..cf523847 100644
--- a/src/lib/du_buff.c
+++ b/src/lib/du_buff.c
@@ -311,7 +311,7 @@ uint8_t * du_buff_head_alloc(du_buff_t * dub, size_t size)
return NULL;
}
- if (dub->du_head - size < 0) {
+ if ((long) (dub->du_head - size) < 0) {
LOG_WARN("Failed to allocate PCI headspace.");
return NULL;
}