We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 2f3d371 commit a5c4a86Copy full SHA for a5c4a86
2 files changed
shared-module/audiomp3/MP3Decoder.c
@@ -48,7 +48,7 @@ static bool stream_readable(void *stream) {
48
49
// (near copy of mp_stream_posix_read, but with changes)
50
// (circuitpy doesn't enable posix stream routines anyway)
51
-static ssize_t stream_read(void *stream, void *buf, size_t len) {
+static mp_int_t stream_read(void *stream, void *buf, size_t len) {
52
int errcode;
53
mp_obj_base_t *o = MP_OBJ_TO_PTR(stream);
54
const mp_stream_p_t *stream_p = MP_OBJ_TYPE_GET_SLOT(o->type, protocol);
shared-module/audiomp3/MP3Decoder.h
@@ -15,9 +15,9 @@
15
16
typedef struct {
17
uint8_t *buf;
18
- ssize_t size;
19
- ssize_t read_off;
20
- ssize_t write_off;
+ mp_int_t size;
+ mp_int_t read_off;
+ mp_int_t write_off;
21
} mp3_input_buffer_t;
22
23
0 commit comments