projects
/
postgresql.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
863db45
)
Fix gcc complaint about long being passed to sprintf %d.
author
Tom Lane
Fri, 9 Jul 1999 22:53:40 +0000
(22:53 +0000)
committer
Tom Lane
Fri, 9 Jul 1999 22:53:40 +0000
(22:53 +0000)
src/interfaces/ecpg/preproc/preproc.y
patch
|
blob
|
blame
|
history
diff --git
a/src/interfaces/ecpg/preproc/preproc.y
b/src/interfaces/ecpg/preproc/preproc.y
index bbb1e785b438e2a6fd69dae7b8d96c5e0a75d9b7..274d4b64a0c8047b9bb679e5725cabc468309d09 100644
(file)
--- a/
src/interfaces/ecpg/preproc/preproc.y
+++ b/
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);
}