summaryrefslogtreecommitdiff
path: root/src/lib/du_buff.c
diff options
context:
space:
mode:
authorDimitri Staessens <dimitri.staessens@intec.ugent.be>2016-03-14 14:30:41 +0100
committerDimitri Staessens <dimitri.staessens@intec.ugent.be>2016-03-14 14:30:41 +0100
commit56a31976b04dd5514c9ce054ad355a59d84ae28f (patch)
treeb743f3d323e6cc720a809f1aa5d16f2c3ea8cf3b /src/lib/du_buff.c
parent83f7ac29e70595d0bd68645e0aa91b2b34a286db (diff)
downloadouroboros-56a31976b04dd5514c9ce054ad355a59d84ae28f.tar.gz
ouroboros-56a31976b04dd5514c9ce054ad355a59d84ae28f.zip
Fixed clang compilation errors
fixed a signed-unsigned mismatch in du_buff.c fixed an uninitialised variable in irm
Diffstat (limited to 'src/lib/du_buff.c')
-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;
}