projects
/
platform
/
upstream
/
libxkbcommon.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
f52671a
)
Fix a scanf type mismatch
author
Ran Benita
<ran234@gmail.com>
Fri, 23 Mar 2012 21:39:12 +0000
(23:39 +0200)
committer
Daniel 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
patch
|
blob
|
history
diff --git
a/src/xkbcomp/xkbscan.l
b/src/xkbcomp/xkbscan.l
index 478dd04a6acdce22e4478e67cd73d10155995b25..8120681ae4b63de4728a0490acc2a5b1d2455942 100644
(file)
--- 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 );