Fix compiler warning

David Rowley <drowley@postgresql.org>

Commit: fe4f36bcde182d57dee5dba898076aba5d826515
Author: David Rowley <drowley@postgresql.org>
Date: 2020-09-15T03:07:57Z
Releases: 14.0
Fix compiler warning

Introduced in 0aa8f7640.

MSVC warned about performing 32-bit bit shifting when it appeared like we
might like a 64-bit result.  We did, but it just so happened that none of
the calls to this function could have caused the 32-bit shift to overflow.

Here we just cast the constant to int64 to make the compiler happy.

Discussion: https://postgr.es/m/CAApHDvofA_vsrpC13mq_hZyuye5B-ssKEaer04OouXYCO5-uXQ@mail.gmail.com

Files

PathChange+/−
src/backend/utils/adt/dbsize.c modified +1 −1

Discussion

Cited messages not in the archive: CAApHDvofA_vsrpC13mq_hZyuye5B-ssKEaer04OouXYCO5-uXQ@mail.gmail.com