aboutsummaryrefslogtreecommitdiff
path: root/src/backend/executor
diff options
context:
space:
mode:
authorTom Lane <tgl@sss.pgh.pa.us>2017-10-13 11:46:05 -0400
committerTom Lane <tgl@sss.pgh.pa.us>2017-10-13 11:46:05 -0400
commit5229db6c6f92515afcd698cf5d5badc12ffe6bc2 (patch)
tree71dc3a19df8ff9a02d4e431f4272a081b0606412 /src/backend/executor
parent7d1b8e7591690fb68cc53553e0f13b537b5455dc (diff)
downloadpostgresql-5229db6c6f92515afcd698cf5d5badc12ffe6bc2.tar.gz
postgresql-5229db6c6f92515afcd698cf5d5badc12ffe6bc2.zip
Rely on sizeof(typename) rather than sizeof(variable) in pqformat.h.
In each of the pq_writeintN functions, the three uses of sizeof() should surely all be consistent. I started out to make them all sizeof(ni), but on reflection let's make them sizeof(typename) instead. That's more like our usual style elsewhere, and it's just barely possible that the failures buildfarm member hornet has shown since 4c119fbcd went in are caused by the compiler getting confused about sizeof() a parameter that it's optimizing away. In passing, improve a couple of comments. Discussion: https://postgr.es/m/E1e2RML-0002do-Lc@gemulon.postgresql.org
Diffstat (limited to 'src/backend/executor')
0 files changed, 0 insertions, 0 deletions