1
0
mirror of https://github.com/postgres/postgres.git synced 2025-06-29 10:41:53 +03:00

Various compile errors concerning overflow due to shifts, unsigned, and bad prototypes, from Solaris, from Diab Jerius

This commit is contained in:
Bruce Momjian
1997-07-24 20:19:10 +00:00
parent 8447148aad
commit 3ac9d2fff3
21 changed files with 51 additions and 71 deletions

View File

@ -7,7 +7,7 @@
*
*
* IDENTIFICATION
* $Header: /cvsroot/pgsql/src/backend/utils/adt/arrayfuncs.c,v 1.10 1996/11/08 05:59:38 momjian Exp $
* $Header: /cvsroot/pgsql/src/backend/utils/adt/arrayfuncs.c,v 1.11 1997/07/24 20:15:45 momjian Exp $
*
*-------------------------------------------------------------------------
*/
@ -1203,7 +1203,7 @@ _ArrayRange(int st[],
int n, *dim, *lb, st_pos, prod[MAXDIM];
int span[MAXDIM], dist[MAXDIM], indx[MAXDIM];
int i, j, inc;
char *srcPtr, *array_seek();
char *srcPtr;
n = ARR_NDIM(array); dim = ARR_DIMS(array);
lb = ARR_LBOUND(array); srcPtr = ARR_DATA_PTR(array);
@ -1232,7 +1232,7 @@ _ArrayClipCount(int stI[], int endpI[], ArrayType *array)
int span[MAXDIM], dist[MAXDIM], indx[MAXDIM];
int i, j, inc, st[MAXDIM], endp[MAXDIM];
int count = 0;
char *ptr, *array_seek();
char *ptr;
n = ARR_NDIM(array); dim = ARR_DIMS(array);
lb = ARR_LBOUND(array); ptr = ARR_DATA_PTR(array);