Skip to content

Commit d49ac4c

Browse files
committed
Fix assertion typos.
Reported by Conrad Meyer.
1 parent a3f4977 commit d49ac4c

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

src/ctl.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1970,7 +1970,7 @@ arena_reset_finish_background_thread(tsd_t *tsd, unsigned arena_ind) {
19701970
unsigned ind = arena_ind % ncpus;
19711971
background_thread_info_t *info =
19721972
&background_thread_info[ind];
1973-
assert(info->state = background_thread_paused);
1973+
assert(info->state == background_thread_paused);
19741974
malloc_mutex_lock(tsd_tsdn(tsd), &info->mtx);
19751975
info->state = background_thread_started;
19761976
malloc_mutex_unlock(tsd_tsdn(tsd), &info->mtx);

src/jemalloc.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1799,7 +1799,7 @@ imalloc_body(static_opts_t *sopts, dynamic_opts_t *dopts, tsd_t *tsd) {
17991799
*/
18001800
assert(dopts->tcache_ind == TCACHE_IND_AUTOMATIC ||
18011801
dopts->tcache_ind == TCACHE_IND_NONE);
1802-
assert(dopts->arena_ind = ARENA_IND_AUTOMATIC);
1802+
assert(dopts->arena_ind == ARENA_IND_AUTOMATIC);
18031803
dopts->tcache_ind = TCACHE_IND_NONE;
18041804
/* We know that arena 0 has already been initialized. */
18051805
dopts->arena_ind = 0;

0 commit comments

Comments
 (0)