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:
fbd0e64
)
xkbcomp: remove cast which triggers warning on gcc
author
Ran Benita
<ran@unusedvar.com>
Fri, 27 Dec 2019 20:08:57 +0000
(22:08 +0200)
committer
Ran Benita
<ran@unusedvar.com>
Fri, 27 Dec 2019 20:09:34 +0000
(22:09 +0200)
Will need some other way to take care of the warning on MSVC.
Signed-off-by: Ran Benita <ran@unusedvar.com>
src/xkbcomp/scanner.c
patch
|
blob
|
history
diff --git
a/src/xkbcomp/scanner.c
b/src/xkbcomp/scanner.c
index
65eef53
..
b349499
100644
(file)
--- a/
src/xkbcomp/scanner.c
+++ b/
src/xkbcomp/scanner.c
@@
-52,7
+52,7
@@
number(struct scanner *s, int64_t *out, int *out_tok)
else if (is_float)
/* The parser currently just ignores floats, so the cast is
* fine - the value doesn't matter. */
- *out =
(int64_t)
strtod(start, &end);
+ *out = strtod(start, &end);
else
*out = strtoul(start, &end, 10);
if (errno != 0 || s->s + s->pos != end)