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

REL6_5_PATCHES
Tom Lane 27 years ago
parent 863db45e86
commit 73efd3867d
  1. 2
      src/interfaces/ecpg/preproc/preproc.y

@ -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…
Cancel
Save