From 1c6b442d3283b91ad9a83add9226f0e0ea2baff2 Mon Sep 17 00:00:00 2001 From: Damien George Date: Mon, 21 Aug 2017 22:05:09 +1000 Subject: [PATCH] extmod/modubinascii: Don't post-increment variable that won't be used. --- extmod/modubinascii.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/extmod/modubinascii.c b/extmod/modubinascii.c index b02d833185..25fc8852ac 100644 --- a/extmod/modubinascii.c +++ b/extmod/modubinascii.c @@ -194,7 +194,7 @@ mp_obj_t mod_binascii_b2a_base64(mp_obj_t data) { *out++ = (in[0] & 0x03) << 4; *out++ = 64; } - *out++ = 64; + *out = 64; } // Second pass, we convert number base 64 values to actual base64 ascii encoding