Skip to content

Commit 7420d74

Browse files
committed
fix signedness of N_ARENA
Fixes CFLAGS=-Wformat-signedness make CC=gcc CONFIG_STATS=true build failure
1 parent cd2315c commit 7420d74

2 files changed

Lines changed: 2 additions & 2 deletions

File tree

Android.bp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@ common_cflags = [
2525
"-DREGION_QUARANTINE_SKIP_THRESHOLD=33554432", // 32MiB
2626
"-DFREE_SLABS_QUARANTINE_RANDOM_LENGTH=32",
2727
"-DCONFIG_CLASS_REGION_SIZE=34359738368", // 32GiB
28-
"-DN_ARENA=1",
28+
"-DN_ARENA=1U",
2929
"-DCONFIG_STATS=true",
3030
"-DCONFIG_SELF_INIT=false",
3131
]

Makefile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -112,7 +112,7 @@ CPPFLAGS += \
112112
-DREGION_QUARANTINE_SKIP_THRESHOLD=$(CONFIG_REGION_QUARANTINE_SKIP_THRESHOLD) \
113113
-DFREE_SLABS_QUARANTINE_RANDOM_LENGTH=$(CONFIG_FREE_SLABS_QUARANTINE_RANDOM_LENGTH) \
114114
-DCONFIG_CLASS_REGION_SIZE=$(CONFIG_CLASS_REGION_SIZE) \
115-
-DN_ARENA=$(CONFIG_N_ARENA) \
115+
-DN_ARENA=$(CONFIG_N_ARENA)U \
116116
-DCONFIG_STATS=$(CONFIG_STATS) \
117117
-DCONFIG_SELF_INIT=$(CONFIG_SELF_INIT) \
118118
-DCONFIG_LABEL_MEMORY=$(CONFIG_LABEL_MEMORY)

0 commit comments

Comments
 (0)