Skip to content

Commit 1c6b18f

Browse files
author
Oleg Ivanov
committed
Fixed a bug for 32bit platforms
1 parent db13434 commit 1c6b18f

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

contrib/aqo/storage.c

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -728,7 +728,7 @@ deform_matrix(Datum datum, double **matrix)
728728
j;
729729

730730
deconstruct_array(array,
731-
FLOAT8OID, 8, true, 'd',
731+
FLOAT8OID, 8, FLOAT8PASSBYVAL, 'd',
732732
&values, NULL, &nelems);
733733
rows = ARR_DIMS(array)[0];
734734
cols = ARR_DIMS(array)[1];
@@ -751,7 +751,7 @@ deform_vector(Datum datum, double *vector, int *nelems)
751751
int i;
752752

753753
deconstruct_array(array,
754-
FLOAT8OID, 8, true, 'd',
754+
FLOAT8OID, 8, FLOAT8PASSBYVAL, 'd',
755755
&values, NULL, nelems);
756756
for (i = 0; i < *nelems; ++i)
757757
vector[i] = DatumGetFloat8(values[i]);
@@ -780,7 +780,7 @@ form_matrix(double **matrix, int nrows, int ncols)
780780
for (j = 0; j < ncols; ++j)
781781
elems[i * ncols + j] = Float8GetDatum(matrix[i][j]);
782782
array = construct_md_array(elems, NULL, 2, dims, lbs,
783-
FLOAT8OID, 8, true, 'd');
783+
FLOAT8OID, 8, FLOAT8PASSBYVAL, 'd');
784784
pfree(elems);
785785
return array;
786786
}
@@ -803,7 +803,7 @@ form_vector(double *vector, int nrows)
803803
for (i = 0; i < nrows; ++i)
804804
elems[i] = Float8GetDatum(vector[i]);
805805
array = construct_md_array(elems, NULL, 1, dims, lbs,
806-
FLOAT8OID, 8, true, 'd');
806+
FLOAT8OID, 8, FLOAT8PASSBYVAL, 'd');
807807
pfree(elems);
808808
return array;
809809
}

0 commit comments

Comments
 (0)