mirror of
https://github.com/postgres/postgres.git
synced 2025-06-16 06:01:02 +03:00
Re-run pgindent, fixing a problem where comment lines after a blank
comment line where output as too long, and update typedefs for /lib directory. Also fix case where identifiers were used as variable names in the backend, but as typedefs in ecpg (favor the backend for indenting). Backpatch to 8.1.X.
This commit is contained in:
@ -8,7 +8,7 @@
|
||||
*
|
||||
*
|
||||
* IDENTIFICATION
|
||||
* $PostgreSQL: pgsql/src/backend/utils/adt/arrayutils.c,v 1.19 2005/11/17 22:14:52 tgl Exp $
|
||||
* $PostgreSQL: pgsql/src/backend/utils/adt/arrayutils.c,v 1.20 2005/11/22 18:17:22 momjian Exp $
|
||||
*
|
||||
*-------------------------------------------------------------------------
|
||||
*/
|
||||
@ -82,7 +82,7 @@ ArrayGetNItems(int ndim, const int *dims)
|
||||
ret = 1;
|
||||
for (i = 0; i < ndim; i++)
|
||||
{
|
||||
int64 prod;
|
||||
int64 prod;
|
||||
|
||||
/* A negative dimension implies that UB-LB overflowed ... */
|
||||
if (dims[i] < 0)
|
||||
@ -91,7 +91,8 @@ ArrayGetNItems(int ndim, const int *dims)
|
||||
errmsg("array size exceeds the maximum allowed (%d)",
|
||||
(int) MaxArraySize)));
|
||||
|
||||
prod = (int64) ret * (int64) dims[i];
|
||||
prod = (int64) ret *(int64) dims[i];
|
||||
|
||||
ret = (int32) prod;
|
||||
if ((int64) ret != prod)
|
||||
ereport(ERROR,
|
||||
|
Reference in New Issue
Block a user