aboutsummaryrefslogtreecommitdiffstats
path: root/src/hex.cpp
diff options
context:
space:
mode:
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]]);
}
/*************************************************