summaryrefslogtreecommitdiff
path: root/py/binary.c
diff options
context:
space:
mode:
authorDan Halbert <halbert@halwitz.org>2019-10-15 15:55:21 -0400
committerDan Halbert <halbert@halwitz.org>2019-10-15 15:55:21 -0400
commitbe8136dc6d09e2c3af5c20c881662ebf51a778d8 (patch)
treed365470b40d1877449c929dce43c55a288550437 /py/binary.c
parentfc19e03128aeeb94a22fdff097e4d0576d768986 (diff)
parent63790f01f833ff197d92f80816f21a61e924bd72 (diff)
Merge remote-tracking branch 'adafruit/master' into bonding1
Diffstat (limited to 'py/binary.c')
-rw-r--r--py/binary.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/py/binary.c b/py/binary.c
index 6b46425cf..2ec12fa93 100644
--- a/py/binary.c
+++ b/py/binary.c
@@ -184,7 +184,7 @@ long long mp_binary_get_int(mp_uint_t size, bool is_signed, bool big_endian, con
val = -1;
}
for (uint i = 0; i < size; i++) {
- val <<= 8;
+ val *= 256;
val |= *src;
src += delta;
}