Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

Commit 64171b3

Browse filesBrowse 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
Copy full SHA for 64171b3

File tree

Expand file treeCollapse file tree

1 file changed

+1
-1
lines changed
Filter options
  • src/backend/utils/mmgr
Expand file treeCollapse file tree

1 file changed

+1
-1
lines changed

‎src/backend/utils/mmgr/dsa.c

Copy file name to clipboardExpand all lines: src/backend/utils/mmgr/dsa.c
+1-1Lines 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 (0)
Morty Proxy This is a proxified and sanitized view of the page, visit original site.