Cast result of i64abs() back to int64
authorPeter Eisentraut <peter@eisentraut.org>
Fri, 28 Mar 2025 13:05:45 +0000 (14:05 +0100)
committerPeter Eisentraut <peter@eisentraut.org>
Fri, 28 Mar 2025 13:34:57 +0000 (14:34 +0100)
commit2247281c470502c799fc2153a3583c025e894a9c
treea6f2bdb1f3d4f14018713d35e02b95019183eab7
parent83ccc85859f30af44785b0dee830f7071d99ec4f
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
src/include/c.h