about summary refs log tree commit diff stats
path: root/src/utils/twtstr.nim
diff options
context:
space:
mode:
Diffstat (limited to 'src/utils/twtstr.nim')
-rw-r--r--src/utils/twtstr.nim2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/utils/twtstr.nim b/src/utils/twtstr.nim
index 6cab9ac7..b1c6d1c9 100644
--- a/src/utils/twtstr.nim
+++ b/src/utils/twtstr.nim
@@ -91,7 +91,7 @@ func pushHex*(buf: var string; u: uint8) =
   buf &= HexCharsUpper[u and 0xF]
 
 func pushHex*(buf: var string; c: char) =
-  buf.pushHex(cast[uint8](c))
+  buf.pushHex(uint8(c))
 
 func toHexLower*(u: uint16): string =
   var x = u