From 145796f037715e180b441b38c1ec1ba45ff77797 Mon Sep 17 00:00:00 2001 From: Tom Collins Date: Fri, 30 Jun 2017 16:23:29 -0700 Subject: py,extmod: Some casts and minor refactors to quiet compiler warnings. --- py/vstr.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'py/vstr.c') 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) { -- cgit v1.2.3