Skip to content

Commit aaab5b3

Browse files
committed
Fix missing const for Fuzz tests
1 parent 6b3a124 commit aaab5b3

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

test/fuzz/umfFuzz.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ constexpr int MAX_POOLS_ALLOC_SIZE = 1 * 1024; // 1 kB
1212
constexpr int MAX_PROVIDER_ALLOC_SIZE = 100 * 1024; // 100 kB
1313

1414
int umf_memory_provider_create(TestState &test_state) {
15-
umf_memory_provider_ops_t *provider_ops = umfOsMemoryProviderOps();
15+
const umf_memory_provider_ops_t *provider_ops = umfOsMemoryProviderOps();
1616
umf_os_memory_provider_params_handle_t params = NULL;
1717

1818
umf_result_t res = umfOsMemoryProviderParamsCreate(&params);
@@ -79,7 +79,7 @@ int umf_pool_create(TestState &test_state) {
7979
return -1;
8080
}
8181

82-
umf_memory_pool_ops_t *pool_ops = umfScalablePoolOps();
82+
const umf_memory_pool_ops_t *pool_ops = umfScalablePoolOps();
8383
void *pool_params = NULL;
8484
umf_pool_create_flags_t flags = 0;
8585
umf_memory_pool_handle_t pool;

0 commit comments

Comments
 (0)