Fix a scanf type mismatch
authorRan Benita <ran234@gmail.com>
Fri, 23 Mar 2012 21:39:12 +0000 (23:39 +0200)
committerDaniel Stone <daniel@fooishbar.org>
Tue, 27 Mar 2012 12:59:50 +0000 (13:59 +0100)
"%o" takes an unsigned int.

Signed-off-by: Ran Benita <ran234@gmail.com>
src/xkbcomp/xkbscan.l

index 478dd04a6acdce22e4478e67cd73d10155995b25..8120681ae4b63de4728a0490acc2a5b1d2455942 100644 (file)
@@ -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 );