__slice__ equal to __get__ when SLICE_ENABLE off

This commit is contained in:
pikastech 2022-06-08 10:27:23 +08:00
parent da00653707
commit 2c17be4191
2 changed files with 6 additions and 4 deletions

View File

@ -406,7 +406,8 @@ Arg* PikaStdLib_SysObj___slice__(PikaObj* self,
}
return sliced_arg;
}
#endif
return arg_setNull(NULL);
#else
return PikaStdLib_SysObj___get__(self, start, obj);
#endif
}

View File

@ -406,7 +406,8 @@ Arg* PikaStdLib_SysObj___slice__(PikaObj* self,
}
return sliced_arg;
}
#endif
return arg_setNull(NULL);
#else
return PikaStdLib_SysObj___get__(self, start, obj);
#endif
}