aboutsummaryrefslogtreecommitdiff
path: root/src/postgresql.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/postgresql.cpp')
-rw-r--r--src/postgresql.cpp2
1 files changed, 1 insertions, 1 deletions
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;