Cast result of i64abs() back to int64

Peter Eisentraut <peter@eisentraut.org>

Commit: 2247281c470502c799fc2153a3583c025e894a9c
Author: Peter Eisentraut <peter@eisentraut.org>
Date: 2025-03-28T13:34:57Z
Releases: 18.0
Cast result of i64abs() back to int64

Without the cast, the return type could be long or long long,
depending on what int64 is underneath.  This doesn't affect code
correctness, but it could result in format-mismatch warnings when
attempting to printf such values using PRId64.

Reported-by: Thomas Munro <thomas.munro@gmail.com>
Discussion: https://www.postgresql.org/message-id/flat/CA+hUKGJc4s+Wyb3EFOQNN9VVK+Qv40r2LK41o9PkS9ThxviTvQ@mail.gmail.com

Files

PathChange+/−
src/include/c.h modified +2 −2

Discussion