aboutsummaryrefslogtreecommitdiffstats
path: root/src/hex.cpp
diff options
context:
space:
mode:
authorlloyd <[email protected]>2007-07-23 15:44:04 +0000
committerlloyd <[email protected]>2007-07-23 15:44:04 +0000
commite2f1f734277146d817ab284dea21e4013cb5b937 (patch)
tree21ad6ee775e36aa7fb24a504077200c22b1f15b8 /src/hex.cpp
parent211c4929ae92106794984d872a0cae1a873baa29 (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/hex.cpp')
-rw-r--r--src/hex.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/hex.cpp b/src/hex.cpp
index 384c8421d..88ee4b6ae 100644
--- a/src/hex.cpp
+++ b/src/hex.cpp
@@ -145,7 +145,7 @@ void Hex_Decoder::handle_bad_char(byte c)
*************************************************/
byte Hex_Decoder::decode(const byte hex[2])
{
- return (byte)((HEX_TO_BIN[hex[0]] << 4) | HEX_TO_BIN[hex[1]]);
+ return ((HEX_TO_BIN[hex[0]] << 4) | HEX_TO_BIN[hex[1]]);
}
/*************************************************