Ignore size parameter

This commit is contained in:
Scott Shawcroft 2020-11-23 12:14:58 -08:00 committed by Dan Halbert
parent ebc765e1e0
commit fc1f47d0d2

View File

@ -85,6 +85,7 @@ STATIC byte ujson_stream_next(ujson_stream_t *s) {
#define CIRCUITPY_JSON_READ_CHUNK_SIZE 64
STATIC mp_uint_t ujson_python_readinto(mp_obj_t obj, void *buf, mp_uint_t size, int *errcode) {
(void) size; // Ignore size because we know it's always 1.
ujson_stream_t* s = obj;
if (s->start == s->end) {