aboutsummaryrefslogtreecommitdiff
path: root/py/vstr.c
diff options
context:
space:
mode:
authorTom Collins <tom.collins@digi.com>2017-06-30 16:23:29 -0700
committerDamien George <damien.p.george@gmail.com>2017-07-07 11:32:22 +1000
commit145796f037715e180b441b38c1ec1ba45ff77797 (patch)
treec709871f107f103dfdccd7c6975cd4f07a006477 /py/vstr.c
parented52955c6bb05d2a08c009ed24ab3214c88c6fb1 (diff)
py,extmod: Some casts and minor refactors to quiet compiler warnings.
Diffstat (limited to 'py/vstr.c')
-rw-r--r--py/vstr.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/py/vstr.c b/py/vstr.c
index 6a91552b5..f41bd2e23 100644
--- a/py/vstr.c
+++ b/py/vstr.c
@@ -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) {