Fix gcc complaint about long being passed to sprintf %d.
authorTom Lane
Fri, 9 Jul 1999 22:53:40 +0000 (22:53 +0000)
committerTom Lane
Fri, 9 Jul 1999 22:53:40 +0000 (22:53 +0000)
src/interfaces/ecpg/preproc/preproc.y

index bbb1e785b438e2a6fd69dae7b8d96c5e0a75d9b7..274d4b64a0c8047b9bb679e5725cabc468309d09 100644 (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);
                    }