Fix unportable definition of BSWAP64() macro.

Tom Lane <tgl@sss.pgh.pa.us>

Commit: 41c16edcf6c90d1f42810ea523b7e65c99edad50
Author: Tom Lane <tgl@sss.pgh.pa.us>
Date: 2017-02-24T20:21:39Z
Releases: 10.0
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.

Files

PathChange+/−
src/include/port/pg_bswap.h modified +13 −12