mirror of
https://github.com/leahneukirchen/cwm.git
synced 2023-08-10 21:13:12 +03:00
explicitly specify integer size in numberstring
This commit is contained in:
parent
481894147a
commit
42bc0412e3
3
parse.y
3
parse.y
@ -22,6 +22,7 @@
|
||||
%{
|
||||
|
||||
#include <sys/types.h>
|
||||
#include <inttypes.h>
|
||||
#include "queue.h"
|
||||
|
||||
#include <ctype.h>
|
||||
@ -108,7 +109,7 @@ string : string STRING {
|
||||
|
||||
numberstring : NUMBER {
|
||||
char *s;
|
||||
if (asprintf(&s, "%lld", $1) == -1) {
|
||||
if (asprintf(&s, "%" PRId64, $1) == -1) {
|
||||
yyerror("string: asprintf");
|
||||
YYERROR;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user