mirror of
https://git.postgresql.org/git/postgresql.git
synced 2025-02-05 19:09:58 +08:00
Fix gcc complaint about long being passed to sprintf %d.
This commit is contained in:
parent
863db45e86
commit
73efd3867d
@ -3355,7 +3355,7 @@ Character: character '(' Iconst ')'
|
||||
yyerror(errortext);
|
||||
}
|
||||
else if (atol($3) > MaxAttrSize) {
|
||||
sprintf(errortext, "length for type '%s' cannot exceed %d",$1,MaxAttrSize);
|
||||
sprintf(errortext, "length for type '%s' cannot exceed %ld",$1,(long) MaxAttrSize);
|
||||
yyerror(errortext);
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user