From d130e2838e8d9af089247a7d35f7202a9a503b50 Mon Sep 17 00:00:00 2001 From: Ben Gras Date: Fri, 24 Mar 2006 23:08:19 +0000 Subject: [PATCH] Fix for sys_in* bug --- drivers/dp8390/dp8390.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/drivers/dp8390/dp8390.c b/drivers/dp8390/dp8390.c index d431fcf4a..c0f8cd78d 100644 --- a/drivers/dp8390/dp8390.c +++ b/drivers/dp8390/dp8390.c @@ -1905,12 +1905,12 @@ u8_t inb(port_t port) u16_t inw(port_t port) { int r; - u16_t value; + unsigned long value; r= sys_inw(port, &value); if (r != OK) panic("DP8390", "sys_inw failed", r); - return value; + return (u16_t) value; } void outb(port_t port, u8_t value)