From f71024077af151e0eeb37151fb0754e61ee9a2ea Mon Sep 17 00:00:00 2001 From: Richard Knight Date: Wed, 21 Jul 2021 22:22:01 +0100 Subject: new cmake approach --- src/postgresql.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/postgresql.cpp') diff --git a/src/postgresql.cpp b/src/postgresql.cpp index f2d42be..6b54e29 100644 --- a/src/postgresql.cpp +++ b/src/postgresql.cpp @@ -98,7 +98,7 @@ void PostgresConnection::ToArray(PGresult* result, csnd::Csound* csound, ARRAYDA int rows = PQntuples(result); int cols = PQnfields(result); int totalResults = rows * cols; - array->sizes = csound->calloc(sizeof(int32_t) * 2); + array->sizes = (int32_t*) csound->calloc(sizeof(int32_t) * 2); array->sizes[0] = rows; array->sizes[1] = cols; array->dimensions = 2; -- cgit v1.2.3