]> git.ipfire.org Git - thirdparty/postgresql.git/commit
More zic cleanup.
authorTom Lane <tgl@sss.pgh.pa.us>
Sun, 6 Nov 2016 15:45:58 +0000 (10:45 -0500)
committerTom Lane <tgl@sss.pgh.pa.us>
Sun, 6 Nov 2016 15:46:14 +0000 (10:46 -0500)
commit6e377ef0cc88851f9d077ae93f529701af81170d
treebcc57baef9d7e3a6513918765773f1c410088c96
parent56993cd17efc71f321c3aa09d93d03d11b83b8c6
More zic cleanup.

The workaround the IANA guys chose to get rid of the clang warning
we'd silenced in commit 23ed2ba81 turns out not to satisfy Coverity.
Go back to the previous solution, ie, remove the useless comparison
to SIZE_MAX.  (In principle, there could be machines out there where
it's not useless because ptrdiff_t is wider than size_t.  But the whole
thing is pretty academic anyway, as we could never approach this limit
for any sane estimate of the amount of data that zic will ever be asked
to work with.)

Also, s/lineno/lineno_t/g, because if we accept their decision to start
using "lineno" as a typedef, it is going to have very unpleasant
consequences in our next pgindent run.  Noted that while fooling with
pltcl yesterday.
src/timezone/zic.c