8000 unix/modjni: Update .getiter signature to include mp_obj_iter_buf_t* . · andrewleech/micropython@11573fc · GitHub
[go: up one dir, main page]

Skip to content

Commit 11573fc

Browse files
pfalcondpgeorge
authored andcommitted
unix/modjni: Update .getiter signature to include mp_obj_iter_buf_t* .
And thus be buildable again.
1 parent 3f6ffe0 commit 11573fc

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

ports/unix/modjni.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -316,9 +316,9 @@ MP_DEFINE_CONST_FUN_OBJ_2(subscr_load_adaptor_obj, subscr_load_adaptor);
316316

317317
// .getiter special method which returns iterator which works in terms
318318
// of object subscription.
319-
STATIC mp_obj_t subscr_getiter(mp_obj_t self_in) {
319+
STATIC mp_obj_t subscr_getiter(mp_obj_t self_in, mp_obj_iter_buf_t *iter_buf) {
320320
mp_obj_t dest[2] = {(mp_obj_t)&subscr_load_adaptor_obj, self_in};
321-
return mp_obj_new_getitem_iter(dest);
321+
return mp_obj_new_getitem_iter(dest, iter_buf);
322322
}
323323

324324
STATIC const mp_obj_type_t jobject_type = {

0 commit comments

Comments
 (0)
0