cStyleCasts

This commit is contained in:
gtsoul-tech
2024-05-17 13:57:12 +03:00
parent afd03a3d85
commit 037a54bb39
19 changed files with 183 additions and 182 deletions

View File

@@ -68,7 +68,7 @@ void two_aligned_free(void *mem) {
return;
}
// Allocated with two_aligned_malloc above.
free((char *)mem - 2);
free(static_cast<char *>(mem) - 2);
}
TEST(CustomAllocator, TwoAlignedCompile) {