From aa8a0c19ec2156864d16bfe4b82fce4f2203c08d Mon Sep 17 00:00:00 2001 From: lloyd Date: Mon, 13 Dec 2010 22:06:59 +0000 Subject: Avoid more VC warnings --- src/math/numbertheory/point_gfp.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src/math/numbertheory') 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 EC2OSP(const PointGFp& point, byte format) else if(format == PointGFp::COMPRESSED) { SecureVector result; - result.push_back(0x02 | y.get_bit(0)); + result.push_back(0x02 | static_cast(y.get_bit(0))); result += bX; @@ -495,7 +495,7 @@ SecureVector EC2OSP(const PointGFp& point, byte format) else if(format == PointGFp::HYBRID) { SecureVector result; - result.push_back(0x06 | y.get_bit(0)); + result.push_back(0x06 | static_cast(y.get_bit(0))); result += bX; result += bY; -- cgit v1.2.3