Thread
Commits
-
printf("%lf") is not portable, so omit the "l".
- 0aa97b86f902 9.3.24 landed
- fa2cfb962c05 10.5 landed
- e52cabff7054 9.4.19 landed
- c6e846446d17 11.0 landed
- 9c515f77d6cf 9.6.10 landed
- 29a4db65fbb7 9.5.14 landed
-
printf("%lf",...) isn't actually portable
Tom Lane <tgl@sss.pgh.pa.us> — 2018-05-19T22:31:54Z
I noticed while poking at the recent ecpg unpleasantness that some of my older critters were warning about use of %lf conversions in printf. Looking into it, I find that current POSIX says the "l" is a no-op, while SUSv2 says it's undefined. I think this usage got into our code as a result of people making false analogies between scanf and printf conversions. I think we should just switch these to plain %f, as per attached. regards, tom lane