diff options
author | Thomas Munro <tmunro@postgresql.org> | 2018-09-25 14:51:01 +1200 |
---|---|---|
committer | Thomas Munro <tmunro@postgresql.org> | 2018-09-25 14:58:41 +1200 |
commit | 64171b32069adcce7f57840143eaca9fbe28ba7e (patch) | |
tree | 34352949dd03b4d9cc501f89377fac21aa623ef2 | |
parent | 08c9917e24683e36dca35201723e47cdc3fa62db (diff) | |
download | postgresql-64171b32069adcce7f57840143eaca9fbe28ba7e.tar.gz postgresql-64171b32069adcce7f57840143eaca9fbe28ba7e.zip |
Constify dsa_size_class_map and use a better type.
Author: Mark G
Reviewed-by: Tom Lane
Discussion: https://postgr.es/m/CAEeOP_Zy_FvVwcAU0UX9nkOhnoR5KN%3D0B6LWX_kv0ZuSc4wbGw%40mail.gmail.com
-rw-r--r-- | src/backend/utils/mmgr/dsa.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/backend/utils/mmgr/dsa.c b/src/backend/utils/mmgr/dsa.c index 33ab8d05d3f..3b7e2ad1267 100644 --- a/src/backend/utils/mmgr/dsa.c +++ b/src/backend/utils/mmgr/dsa.c @@ -256,7 +256,7 @@ static const uint16 dsa_size_classes[] = { * round the size of the object up to the next multiple of 8 bytes, and then * index into this array. */ -static char dsa_size_class_map[] = { +static const uint8 dsa_size_class_map[] = { 2, 3, 4, 5, 6, 7, 8, 9, 10, 10, 11, 11, 12, 12, 13, 13, 14, 14, 14, 14, 15, 15, 15, 15, 16, 16, 16, 16, 17, 17, 17, 17, 18, 18, 18, 18, 18, 18, 18, 18, 19, 19, 19, 19, 19, 19, 19, 19, |