aboutsummaryrefslogtreecommitdiffstats
path: root/src/math/numbertheory
diff options
context:
space:
mode:
authorlloyd <[email protected]>2010-12-13 22:06:59 +0000
committerlloyd <[email protected]>2010-12-13 22:06:59 +0000
commitaa8a0c19ec2156864d16bfe4b82fce4f2203c08d (patch)
treec6de672209e59214c91f29a702339c35d518c459 /src/math/numbertheory
parentd73929a5ec894625e7e4cb82c1a22bea4a0e7a26 (diff)
Avoid more VC warnings
Diffstat (limited to 'src/math/numbertheory')
-rw-r--r--src/math/numbertheory/point_gfp.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/math/numbertheory/point_gfp.cpp b/src/math/numbertheory/point_gfp.cpp
index 5e42e37a5..fab731d29 100644
--- a/src/math/numbertheory/point_gfp.cpp
+++ b/src/math/numbertheory/point_gfp.cpp
@@ -486,7 +486,7 @@ SecureVector<byte> EC2OSP(const PointGFp& point, byte format)
else if(format == PointGFp::COMPRESSED)
{
SecureVector<byte> result;
- result.push_back(0x02 | y.get_bit(0));
+ result.push_back(0x02 | static_cast<byte>(y.get_bit(0)));
result += bX;
@@ -495,7 +495,7 @@ SecureVector<byte> EC2OSP(const PointGFp& point, byte format)
else if(format == PointGFp::HYBRID)
{
SecureVector<byte> result;
- result.push_back(0x06 | y.get_bit(0));
+ result.push_back(0x06 | static_cast<byte>(y.get_bit(0)));
result += bX;
result += bY;