Skip to content

Commit 64171b3

Browse files
committed
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
1 parent 08c9917 commit 64171b3

File tree

1 file changed

+1
-1
lines changed
  • src/backend/utils/mmgr

1 file changed

+1
-1
lines changed

src/backend/utils/mmgr/dsa.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -256,7 +256,7 @@ static const uint16 dsa_size_classes[] = {
256256
* round the size of the object up to the next multiple of 8 bytes, and then
257257
* index into this array.
258258
*/
259-
static char dsa_size_class_map[] = {
259+
static const uint8 dsa_size_class_map[] = {
260260
2, 3, 4, 5, 6, 7, 8, 9, 10, 10, 11, 11, 12, 12, 13, 13,
261261
14, 14, 14, 14, 15, 15, 15, 15, 16, 16, 16, 16, 17, 17, 17, 17,
262262
18, 18, 18, 18, 18, 18, 18, 18, 19, 19, 19, 19, 19, 19, 19, 19,

0 commit comments

Comments
 (0)