From 73e79fd07cc20217d1b7f1cbe1cfe95548cf4d74 Mon Sep 17 00:00:00 2001 From: anatol Date: Tue, 20 Aug 2024 14:38:47 +0300 Subject: [PATCH] wasm build fix --- wallet/core/wallet_db.cpp | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/wallet/core/wallet_db.cpp b/wallet/core/wallet_db.cpp index 1d99ddc08..c77f64795 100644 --- a/wallet/core/wallet_db.cpp +++ b/wallet/core/wallet_db.cpp @@ -363,12 +363,12 @@ namespace beam::wallet { } - static const uint32_t s_Factor = 16; - static const uint64_t s_NoOverflowSrc = uint64_t(-1) / s_Factor; + static constexpr uint32_t s_Factor = 16; + static constexpr uint64_t s_NoOverflowSrc = uint64_t(-1) / s_Factor; struct Partial { - static const Amount s_Inf = Amount(-1); + static constexpr Amount s_Inf = Amount(-1); struct Link { size_t m_iNext; // 1-based, to distinguish "NULL" pointers