From 389f61218d8c0b16b016ae9b3919fc0d731e9836 Mon Sep 17 00:00:00 2001 From: tron Date: Wed, 20 Jul 2005 19:12:30 +0000 Subject: (svn r2655) An uint16 is an uint16, not a byte - fix wrong cast --- console.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/console.c b/console.c index e2b7c122b..959d54bb9 100644 --- a/console.c +++ b/console.c @@ -827,7 +827,7 @@ static void IConsoleVarSetValue(const IConsoleVar *var, uint32 value) *(byte*)var->addr = (byte)value; break; case ICONSOLE_VAR_UINT16: - *(uint16*)var->addr = (byte)value; + *(uint16*)var->addr = (uint16)value; break; case ICONSOLE_VAR_INT16: *(int16*)var->addr = (int16)value; -- cgit v1.2.3-70-g09d2