Skip to content

Commit 74dd600

Browse files
[libc][uefi] use constexpr for errno map
1 parent 5e4c64f commit 74dd600

File tree

1 file changed

+1
-1
lines changed
  • libc/src/__support/OSUtil/uefi

1 file changed

+1
-1
lines changed

libc/src/__support/OSUtil/uefi/error.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@ struct UefiStatusErrnoEntry {
2828
int errno_value;
2929
};
3030

31-
static const cpp::array<UefiStatusErrnoEntry, 43> UEFI_STATUS_ERRNO_MAP = {{
31+
static constexpr cpp::array<UefiStatusErrnoEntry, 43> UEFI_STATUS_ERRNO_MAP = {{
3232
{EFI_SUCCESS, 0},
3333
{EFI_ENCODE_ERROR(EFI_LOAD_ERROR), EINVAL},
3434
{EFI_ENCODE_ERROR(EFI_INVALID_PARAMETER), EINVAL},

0 commit comments

Comments
 (0)