aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorDaniil Cherednik <dan.cherednik@gmail.com>2019-10-06 23:29:53 +0300
committerDaniil Cherednik <dan.cherednik@gmail.com>2019-10-06 23:29:53 +0300
commit2e1d45d0101d08698d8a698d073998a0ccbb8897 (patch)
tree893b7f54b0fb8fcf1ae688d4deb2f7431411706b
parent3e33324de42366389678eca16250687b33aa5692 (diff)
downloadlibpqf-2e1d45d0101d08698d8a698d073998a0ccbb8897.tar.gz
missed const qualifier
-rw-r--r--include/libpqf.h2
-rw-r--r--src/pqf.c2
2 files changed, 2 insertions, 2 deletions
diff --git a/include/libpqf.h b/include/libpqf.h
index a9c05af..a855a5b 100644
--- a/include/libpqf.h
+++ b/include/libpqf.h
@@ -37,7 +37,7 @@ typedef enum {
extern "C" {
#endif
-pqf_status_t pqf_create_a_ctx(uint16_t subband_sz, uint16_t subbands_num, uint16_t proto_sz, float* proto, pqf_a_ctx_t* ctx);
+pqf_status_t pqf_create_a_ctx(uint16_t subband_sz, uint16_t subbands_num, uint16_t proto_sz, const float* proto, pqf_a_ctx_t* ctx);
void pqf_free_a_ctx(pqf_a_ctx_t ctx);
uint16_t pqf_get_frame_sz(pqf_a_ctx_t ctx);
diff --git a/src/pqf.c b/src/pqf.c
index a6e255b..50657cc 100644
--- a/src/pqf.c
+++ b/src/pqf.c
@@ -131,7 +131,7 @@ static pqf_status_t check_params(uint16_t subband_sz, uint16_t subbands_num, uin
return PQF_SUCCESS;
}
-pqf_status_t pqf_create_a_ctx(uint16_t subband_sz, uint16_t subbands_num, uint16_t proto_sz, float* proto, pqf_a_ctx_t* ctx_result)
+pqf_status_t pqf_create_a_ctx(uint16_t subband_sz, uint16_t subbands_num, uint16_t proto_sz, const float* proto, pqf_a_ctx_t* ctx_result)
{
uint16_t i = 0;