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 <sys/types.h>
|
||||||
|
#include <inttypes.h>
|
||||||
#include "queue.h"
|
#include "queue.h"
|
||||||
|
|
||||||
#include <ctype.h>
|
#include <ctype.h>
|
||||||
@ -108,7 +109,7 @@ string : string STRING {
|
|||||||
|
|
||||||
numberstring : NUMBER {
|
numberstring : NUMBER {
|
||||||
char *s;
|
char *s;
|
||||||
if (asprintf(&s, "%lld", $1) == -1) {
|
if (asprintf(&s, "%" PRId64, $1) == -1) {
|
||||||
yyerror("string: asprintf");
|
yyerror("string: asprintf");
|
||||||
YYERROR;
|
YYERROR;
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user