Fix incorrect usage of cassert.

This commit is contained in:
Qi Wang
2019-11-21 14:10:03 -08:00
committed by Qi Wang
parent 45836d7fd3
commit 1decf958d1
3 changed files with 3 additions and 4 deletions

View File

@@ -4,7 +4,7 @@ cache_bin_t test_bin;
TEST_BEGIN(test_cache_bin) {
cache_bin_t *bin = &test_bin;
cassert(PAGE > TCACHE_NSLOTS_SMALL_MAX * sizeof(void *));
assert(PAGE > TCACHE_NSLOTS_SMALL_MAX * sizeof(void *));
/* Page aligned to make sure lowbits not overflowable. */
void **stack = mallocx(PAGE, MALLOCX_TCACHE_NONE | MALLOCX_ALIGN(PAGE));