From 3aa09f5784bf06f2b23b0d0082cd244af53ca8a9 Mon Sep 17 00:00:00 2001 From: Damien George Date: Thu, 23 Oct 2014 12:06:53 +0100 Subject: py: Use MP_OBJ_NULL instead of NULL in a few places. --- py/objstr.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'py/objstr.c') diff --git a/py/objstr.c b/py/objstr.c index 7e6fd10ff..b008dc6c1 100644 --- a/py/objstr.c +++ b/py/objstr.c @@ -215,7 +215,7 @@ STATIC mp_obj_t bytes_make_new(mp_obj_t type_in, mp_uint_t n_args, mp_uint_t n_k mp_int_t len; byte *data; vstr_t *vstr = NULL; - mp_obj_t o = NULL; + mp_obj_t o = MP_OBJ_NULL; // Try to create array of exact len if initializer len is known mp_obj_t len_in = mp_obj_len_maybe(args[0]); if (len_in == MP_OBJ_NULL) { -- cgit v1.2.3