mirror of
https://github.com/postgres/postgres.git
synced 2025-07-27 12:41:57 +03:00
Initial pgindent run for v12.
This is still using the 2.0 version of pg_bsd_indent. I thought it would be good to commit this separately, so as to document the differences between 2.0 and 2.1 behavior. Discussion: https://postgr.es/m/16296.1558103386@sss.pgh.pa.us
This commit is contained in:
@ -298,10 +298,10 @@ internal_size(int *a, int len)
|
||||
for (i = 0; i < len; i += 2)
|
||||
{
|
||||
if (!i || a[i] != a[i - 1]) /* do not count repeated range */
|
||||
size += (int64)(a[i + 1]) - (int64)(a[i]) + 1;
|
||||
size += (int64) (a[i + 1]) - (int64) (a[i]) + 1;
|
||||
}
|
||||
|
||||
if (size > (int64)INT_MAX || size < (int64)INT_MIN)
|
||||
if (size > (int64) INT_MAX || size < (int64) INT_MIN)
|
||||
return -1; /* overflow */
|
||||
return (int) size;
|
||||
}
|
||||
|
Reference in New Issue
Block a user