8000 Ignore size parameter · domdfcoding/circuitpython@fc1f47d · GitHub
[go: up one dir, main page]

Skip to content

Commit fc1f47d

Browse files
tannewtdhalbert
authored andcommitted
Ignore size parameter
1 parent ebc765e commit fc1f47d

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

extmod/modujson.c

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -85,6 +85,7 @@ STATIC byte ujson_stream_next(ujson_stream_t *s) {
8585
#define CIRCUITPY_JSON_READ_CHUNK_SIZE 64
8686

8787
STATIC mp_uint_t ujson_python_readinto(mp_obj_t obj, void *buf, mp_uint_t size, int *errcode) {
88+
(void) size; // Ignore size because we know it's always 1.
8889
ujson_stream_t* s = obj;
8990

9091
if (s->start == s->end) {

0 commit comments

Comments
 (0)
0