Fix warning introduced in 5c279a6d350.

Jeff Davis <jdavis@postgresql.org>

Commit: 9553b4115f1879f66935f42fff0b798ef91866d0
Author: Jeff Davis <jdavis@postgresql.org>
Date: 2022-04-07T07:39:30Z
Releases: 15.0
Fix warning introduced in 5c279a6d350.

Change two macros to be static inline functions instead to keep the
data type consistent. This avoids a "comparison is always true"
warning that was occurring with -Wtype-limits. In the process, change
the names to look less like macros.

Discussion: https://postgr.es/m/20220407063505.njnnrmbn4sxqfsts@alap3.anarazel.de

Files

Discussion