From b93a9b44b79073494f2840a13aa58a8972e3dd22 Mon Sep 17 00:00:00 2001 From: marha Date: Wed, 2 May 2012 10:17:36 +0200 Subject: Solved overflow problem: last can have the value 256 --- xorg-server/xkb/XKBMisc.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'xorg-server') diff --git a/xorg-server/xkb/XKBMisc.c b/xorg-server/xkb/XKBMisc.c index 6abd1d11a..6280637d6 100644 --- a/xorg-server/xkb/XKBMisc.c +++ b/xorg-server/xkb/XKBMisc.c @@ -330,7 +330,7 @@ _XkbFindMatchingInterp(XkbDescPtr xkb, static void _XkbAddKeyChange(KeyCode *pFirst, unsigned char *pNum, KeyCode newKey) { - KeyCode last; + int last; last = (*pFirst) + (*pNum); if (newKey < *pFirst) { -- cgit v1.2.3