diff options
author | Tom Collins <tom.collins@digi.com> | 2017-06-30 16:23:29 -0700 |
---|---|---|
committer | Damien George <damien.p.george@gmail.com> | 2017-07-07 11:32:22 +1000 |
commit | 145796f037715e180b441b38c1ec1ba45ff77797 (patch) | |
tree | c709871f107f103dfdccd7c6975cd4f07a006477 /py/vstr.c | |
parent | ed52955c6bb05d2a08c009ed24ab3214c88c6fb1 (diff) |
py,extmod: Some casts and minor refactors to quiet compiler warnings.
Diffstat (limited to 'py/vstr.c')
-rw-r--r-- | py/vstr.c | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -34,7 +34,7 @@ #include "py/mpprint.h" // returned value is always at least 1 greater than argument -#define ROUND_ALLOC(a) (((a) & ((~0) - 7)) + 8) +#define ROUND_ALLOC(a) (((a) & ((~0U) - 7)) + 8) // Init the vstr so it allocs exactly given number of bytes. Set length to zero. void vstr_init(vstr_t *vstr, size_t alloc) { |