diff options
| author | Scott Shawcroft <scott@adafruit.com> | 2019-10-10 12:27:17 -0700 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2019-10-10 12:27:17 -0700 |
| commit | 18e91d9302cb443665a19432c7f914d2c26764a4 (patch) | |
| tree | 87c90435050df900f006b53d5450f575e07df0c7 /py/binary.c | |
| parent | cc3e0a0d528b671d51ed6e6276b194c9444e1151 (diff) | |
| parent | cd0ed65b290b2a09b5df55daf02f8f1b44a916d9 (diff) | |
Merge pull request #2205 from jepler/scan-build-fixes
Fix several trivial problems found by clang 7's scan-build
Diffstat (limited to 'py/binary.c')
| -rw-r--r-- | py/binary.c | 2 |
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; } |
