xkbcomp: remove cast which triggers warning on gcc

Will need some other way to take care of the warning on MSVC.

Signed-off-by: Ran Benita <ran@unusedvar.com>
master
Ran Benita 2019-12-27 22:08:57 +02:00
parent fbd0e643d8
commit 521bb498ed
1 changed files with 1 additions and 1 deletions

View File

@ -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)