Skip to content

Commit

Permalink
Fix random number generation.
Browse files Browse the repository at this point in the history
  • Loading branch information
jandupej committed Oct 2, 2024
1 parent 82aefc3 commit 7227944
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
1 change: 1 addition & 0 deletions examples/cpp/core/multiprecision/multiprecision.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@
#include <bond/stream/output_buffer.h>

#include <boost/multiprecision/miller_rabin.hpp>
#include <boost/random.hpp>

using namespace examples::multiprecision;

Expand Down
2 changes: 1 addition & 1 deletion examples/cpp/core/multiprecision/multiprecision.h
Original file line number Diff line number Diff line change
Expand Up @@ -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<uint32_t>(num.backend().size() * sizeof(limb_type));
}


Expand Down

0 comments on commit 7227944

Please sign in to comment.