Fix gcc complaint about long being passed to sprintf %d.

This commit is contained in:
Tom Lane 1999-07-09 22:53:40 +00:00
parent 863db45e86
commit 73efd3867d
1 changed files with 1 additions and 1 deletions

View File

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