From cb5e70afa1339bb907f86d165c7364af59b72968 Mon Sep 17 00:00:00 2001 From: Pavel Charvat Date: Mon, 11 Dec 2006 21:26:07 +0100 Subject: [PATCH] size_t != uns --- lib/lizard-safe.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/lizard-safe.c b/lib/lizard-safe.c index ebefa154..7553b459 100644 --- a/lib/lizard-safe.c +++ b/lib/lizard-safe.c @@ -56,7 +56,7 @@ lizard_realloc(struct lizard_buffer *buf, uns max_len) buf->len = max_len; buf->ptr = mmap(NULL, buf->len + PAGE_SIZE, PROT_READ | PROT_WRITE, MAP_ANON | MAP_PRIVATE, -1, 0); if (buf->ptr == MAP_FAILED) - die("mmap(anonymous, %d bytes): %m", buf->len + PAGE_SIZE); + die("mmap(anonymous, %d bytes): %m", (uns)(buf->len + PAGE_SIZE)); if (mprotect(buf->ptr + buf->len, PAGE_SIZE, PROT_NONE) < 0) die("mprotect: %m"); } -- 2.39.2