diff options
author | Richard Knight <q@1bpm.net> | 2021-07-21 22:22:01 +0100 |
---|---|---|
committer | Richard Knight <q@1bpm.net> | 2021-07-21 22:22:01 +0100 |
commit | f71024077af151e0eeb37151fb0754e61ee9a2ea (patch) | |
tree | 89b59784cc7a0064ecd20ce783488a9522d8ff76 /src/postgresql.cpp | |
parent | 1b40e87a3f54a70d4994262dd7fad4297caaeca3 (diff) | |
download | csound-sqldb-f71024077af151e0eeb37151fb0754e61ee9a2ea.tar.gz csound-sqldb-f71024077af151e0eeb37151fb0754e61ee9a2ea.tar.bz2 csound-sqldb-f71024077af151e0eeb37151fb0754e61ee9a2ea.zip |
new cmake approach
Diffstat (limited to 'src/postgresql.cpp')
-rw-r--r-- | src/postgresql.cpp | 2 |
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; |