1
0
mirror of https://github.com/postgres/postgres.git synced 2026-10-23 13:29:09 +03:00

pgindent fix for a63df26642

Oversight in commit a63df26642 per buildfarm member koel.
This commit is contained in:
Daniel Gustafsson
2026-09-02 09:27:56 +02:00
parent 66f85615d5
commit 978772cf5d

View File

@@ -4716,9 +4716,10 @@ text_right(PG_FUNCTION_ARGS)
if (n < 0)
{
/*
* Negating PG_INT32_MIN would overflow, so clamp instead. Any n whose
* absolute value is at least the string's length skips the whole
* string, and len can't exceed PG_INT32_MAX, so this is equivalent.
* Negating PG_INT32_MIN would overflow, so clamp instead. Any n
* whose absolute value is at least the string's length skips the
* whole string, and len can't exceed PG_INT32_MAX, so this is
* equivalent.
*/
if (unlikely(n == PG_INT32_MIN))
n = PG_INT32_MAX;