diff --git a/examples/cpp/core/multiprecision/multiprecision.cpp b/examples/cpp/core/multiprecision/multiprecision.cpp index a911c193..ed03b932 100644 --- a/examples/cpp/core/multiprecision/multiprecision.cpp +++ b/examples/cpp/core/multiprecision/multiprecision.cpp @@ -4,6 +4,7 @@ #include #include +#include using namespace examples::multiprecision; diff --git a/examples/cpp/core/multiprecision/multiprecision.h b/examples/cpp/core/multiprecision/multiprecision.h index 133e1f00..cc5967af 100644 --- a/examples/cpp/core/multiprecision/multiprecision.h +++ b/examples/cpp/core/multiprecision/multiprecision.h @@ -75,7 +75,7 @@ namespace bond // Bond expects that blob with default value is empty return 0; else - return num.backend().size() * sizeof(limb_type); + return static_cast(num.backend().size() * sizeof(limb_type)); }