]> granicus.if.org Git - postgresql/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:34 +0000 (10:46 -0500)
commit6653dbafd8526a63b91a8b3a020b1616d17977ba
tree7b6df5c586d0f11be47c62f08a1c7370dab158cc
parent07bc2fc4574c5edce135a96353c6a343c3ec4b0d
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