From 9fb89c26f3a3991d197b207f44ef79b1d16c26fc Mon Sep 17 00:00:00 2001 From: Jeff Garzik Date: Sun, 15 Apr 2012 17:00:20 -0400 Subject: Fix misc. minor sign-comparison warnings --- src/key.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src/key.h') diff --git a/src/key.h b/src/key.h index b8fc0cd772..8f220f1c75 100644 --- a/src/key.h +++ b/src/key.h @@ -173,7 +173,7 @@ public: CPrivKey GetPrivKey() const { - unsigned int nSize = i2d_ECPrivateKey(pkey, NULL); + int nSize = i2d_ECPrivateKey(pkey, NULL); if (!nSize) throw key_error("CKey::GetPrivKey() : i2d_ECPrivateKey failed"); CPrivKey vchPrivKey(nSize, 0); @@ -196,7 +196,7 @@ public: std::vector GetPubKey() const { - unsigned int nSize = i2o_ECPublicKey(pkey, NULL); + int nSize = i2o_ECPublicKey(pkey, NULL); if (!nSize) throw key_error("CKey::GetPubKey() : i2o_ECPublicKey failed"); std::vector vchPubKey(nSize, 0); -- cgit v1.2.3