Commit 73efd386 authored by Tom Lane's avatar Tom Lane

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

parent 863db45e
...@@ -3355,7 +3355,7 @@ Character: character '(' Iconst ')' ...@@ -3355,7 +3355,7 @@ Character: character '(' Iconst ')'
yyerror(errortext); yyerror(errortext);
} }
else if (atol($3) > MaxAttrSize) { 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); yyerror(errortext);
} }
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment