From 5d04cf683728a3fda3bc97f77394b020fe27cfa9 Mon Sep 17 00:00:00 2001 From: Pablo Curiel Date: Tue, 18 Oct 2022 19:26:28 +0200 Subject: [PATCH] ncm_types: use NX_CONSTEXPR in size methods. --- nx/include/switch/services/ncm_types.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/nx/include/switch/services/ncm_types.h b/nx/include/switch/services/ncm_types.h index b3ad5cbe..de9143aa 100644 --- a/nx/include/switch/services/ncm_types.h +++ b/nx/include/switch/services/ncm_types.h @@ -176,7 +176,7 @@ typedef struct { * @param[in] info Pointer to \ref NcmContentInfo object. * @param[out] out Output size. */ -NX_INLINE void ncmContentInfoSizeToU64(const NcmContentInfo *info, u64 *out) { +NX_CONSTEXPR void ncmContentInfoSizeToU64(const NcmContentInfo *info, u64 *out) { *out = ((u64)info->size_high << 32) | info->size_low; } @@ -185,7 +185,7 @@ NX_INLINE void ncmContentInfoSizeToU64(const NcmContentInfo *info, u64 *out) { * @param[in] size Input size. * @param[out] out Pointer to \ref NcmContentInfo object to be updated. */ -NX_INLINE void ncmU64ToContentInfoSize(const u64 size, NcmContentInfo *info) { +NX_CONSTEXPR void ncmU64ToContentInfoSize(const u64 size, NcmContentInfo *info) { info->size_low = size & 0xFFFFFFFF; info->size_high = (u8)(size >> 32); }