diff options
author | lloyd <[email protected]> | 2007-07-23 15:44:04 +0000 |
---|---|---|
committer | lloyd <[email protected]> | 2007-07-23 15:44:04 +0000 |
commit | e2f1f734277146d817ab284dea21e4013cb5b937 (patch) | |
tree | 21ad6ee775e36aa7fb24a504077200c22b1f15b8 /src/openpgp.cpp | |
parent | 211c4929ae92106794984d872a0cae1a873baa29 (diff) |
Avoid C-style casts (as detected by GCC's -Wold-style-cast) and instead use
static_cast or reinterpret_cast, as needed.
Diffstat (limited to 'src/openpgp.cpp')
-rw-r--r-- | src/openpgp.cpp | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/openpgp.cpp b/src/openpgp.cpp index e2301207e..b94b0c5b2 100644 --- a/src/openpgp.cpp +++ b/src/openpgp.cpp @@ -97,7 +97,7 @@ SecureVector<byte> decode(DataSource& source, std::string& label, throw Decoding_Error("PGP: Malformed PGP header"); if(position == 0) - label += (char)b; + label += static_cast<char>(b); } headers.clear(); @@ -111,7 +111,7 @@ SecureVector<byte> decode(DataSource& source, std::string& label, if(!source.read_byte(b)) throw Decoding_Error("PGP: Bad armor header"); if(b != '\n') - this_header += (char)b; + this_header += static_cast<char>(b); } end_of_headers = true; @@ -160,7 +160,7 @@ SecureVector<byte> decode(DataSource& source, std::string& label, if(!source.read_byte(b)) throw Decoding_Error("PGP: Bad CRC tail"); if(b != '\n') - crc += (char)b; + crc += static_cast<char>(b); } } else if(b == '\n') |