aboutsummaryrefslogtreecommitdiffstats
path: root/src/lib/pubkey/xmss/xmss_signature.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/lib/pubkey/xmss/xmss_signature.cpp')
-rw-r--r--src/lib/pubkey/xmss/xmss_signature.cpp3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/lib/pubkey/xmss/xmss_signature.cpp b/src/lib/pubkey/xmss/xmss_signature.cpp
index 497a25f2b..8dbb17909 100644
--- a/src/lib/pubkey/xmss/xmss_signature.cpp
+++ b/src/lib/pubkey/xmss/xmss_signature.cpp
@@ -6,6 +6,7 @@
**/
#include <botan/internal/xmss_signature.h>
+#include <cmath>
namespace Botan {
@@ -13,7 +14,7 @@ XMSS_Signature::XMSS_Signature(XMSS_Parameters::xmss_algorithm_t oid,
const secure_vector<uint8_t>& raw_sig)
: m_leaf_idx(0), m_randomness(0, 0x00), m_tree_sig()
{
- BOTAN_ASSERT(sizeof(size_t) >= ceil(static_cast<float>(
+ BOTAN_ASSERT(sizeof(size_t) >= std::ceil(static_cast<float>(
(XMSS_Parameters(oid)).tree_height()) / 8.f),
"System type \"size_t\" not big enough to support"
" leaf index.");