Fix -Wcast-qual warnings

This commit is contained in:
Ion Gaztañaga
2025-11-03 00:13:28 +01:00
parent 195a5e29d8
commit c3aa95bf12
2 changed files with 9 additions and 6 deletions

View File

@@ -532,7 +532,9 @@ bool test_clear_free_memory(Allocator &a)
for(std::size_t j = 0; j < memsize; ++j){
if(static_cast<char*>((char*)ptr)[j]){
std::cout << "Zero memory test failed. in buffer " << i
<< " byte " << j << " first address " << (void*) first_addr << " offset " << ((char*)ptr+j) - (char*)first_addr << " memsize: " << memsize << std::endl;
<< " byte " << j << " first address " << (const void*) first_addr
<< " offset " << ((const char*)ptr+j) - (const char*)first_addr
<< " memsize: " << memsize << std::endl;
return false;
}
}