From 7a97c79be696f7b3043b6886e728ba99bb4c1244 Mon Sep 17 00:00:00 2001 From: Alan Cox Date: Tue, 11 Nov 2014 21:41:27 +0000 Subject: [PATCH] single: fix types --- Kernel/single.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Kernel/single.c b/Kernel/single.c index f2fa6330..ea471844 100644 --- a/Kernel/single.c +++ b/Kernel/single.c @@ -50,7 +50,7 @@ int pagemap_realloc(uint16_t size) uint16_t pagemap_mem_used(void) { - uint16_t mem = PROGTOP - ramtop + udata.u_top; + uint16_t mem = PROGTOP - ramtop + (uint16_t)udata.u_top; return mem >> 10; } -- 2.34.1