Commit 7cc17ec50768652be09358beb234b086aacc7b73

Ran Benita 2012-03-23T23:39:12

Fix a scanf type mismatch "%o" takes an unsigned int. Signed-off-by: Ran Benita <ran234@gmail.com>

1
2
3
4
5
6
7
8
9
10
11
12
13
diff --git a/src/xkbcomp/xkbscan.l b/src/xkbcomp/xkbscan.l
index 478dd04..8120681 100644
--- a/src/xkbcomp/xkbscan.l
+++ b/src/xkbcomp/xkbscan.l
@@ -69,7 +69,7 @@ extern int yyparse(void);
 
 <S_STR,S_KEY>\\[0-7]{1,3} {
 			/* octal escape sequence */
-			int result;
+			unsigned int result;
 
 			(void) sscanf( yytext + 1, "%o", &result );