File tree Expand file tree Collapse file tree 2 files changed +4
-4
lines changed Expand file tree Collapse file tree 2 files changed +4
-4
lines changed Original file line number Diff line number Diff line change @@ -48,7 +48,7 @@ static bool stream_readable(void *stream) {
48
48
49
49
// (near copy of mp_stream_posix_read, but with changes)
50
50
// (circuitpy doesn't enable posix stream routines anyway)
51
- static ssize_t stream_read (void * stream , void * buf , size_t len ) {
51
+ static mp_int_t stream_read (void * stream , void * buf , size_t len ) {
52
52
int errcode ;
53
53
mp_obj_base_t * o = MP_OBJ_TO_PTR (stream );
54
54
const mp_stream_p_t * stream_p = MP_OBJ_TYPE_GET_SLOT (o -> type , protocol );
Original file line number Diff line number Diff line change 15
15
16
16
typedef struct {
17
17
uint8_t * buf ;
18
- ssize_t size ;
19
- ssize_t read_off ;
20
- ssize_t write_off ;
18
+ mp_int_t size ;
19
+ mp_int_t read_off ;
20
+ mp_int_t write_off ;
21
21
} mp3_input_buffer_t ;
22
22
23
23
typedef struct {
You can’t perform that action at this time.
0 commit comments