OSDN Git Service
(root)
/
pg-rex
/
syncrep.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
<tgl@sss.pgh.pa.us>
Fri, 9 Jul 1999 22:53:40 +0000
(22:53 +0000)
committer
Tom Lane
<tgl@sss.pgh.pa.us>
Fri, 9 Jul 1999 22:53:40 +0000
(22:53 +0000)
src/interfaces/ecpg/preproc/preproc.y
patch
|
blob
|
history
diff --git
a/src/interfaces/ecpg/preproc/preproc.y
b/src/interfaces/ecpg/preproc/preproc.y
index
bbb1e78
..
274d4b6
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);
}