]> granicus.if.org Git - postgresql/commit
Fix unportable definition of BSWAP64() macro.
authorTom Lane <tgl@sss.pgh.pa.us>
Fri, 24 Feb 2017 20:21:39 +0000 (15:21 -0500)
committerTom Lane <tgl@sss.pgh.pa.us>
Fri, 24 Feb 2017 20:21:39 +0000 (15:21 -0500)
commitcb8ef68b93312e3977f3e60676ded9a553c14064
tree6806feac9db6de9112c77dbe625a3888d6e7e054
parent16500d2278ab3ddc03a3f6f44c7c2c00def2c1fc
Fix unportable definition of BSWAP64() macro.

We have a portable way of writing uint64 constants, but whoever wrote
this macro didn't know about it.

While at it, fix unsafe under-parenthesization of arguments.  That might
be moot, because there are already good reasons not to use the macro on
anything more complicated than a simple variable, but it's still poor
practice.

Per buildfarm warnings.
src/include/port/pg_bswap.h