Skip to content

Commit

Permalink
Fix passing keyword args to sorted()
Browse files Browse the repository at this point in the history
  • Loading branch information
klange committed Mar 13, 2024
1 parent bd2e22d commit 179b4e4
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/obj_list.c
Original file line number Diff line number Diff line change
Expand Up @@ -846,7 +846,7 @@ KRK_Function(sorted) {
krk_push(listOut);
FUNC_NAME(list,extend)(2,(KrkValue[]){listOut,argv[0]},0);
if (!IS_NONE(krk_currentThread.currentException)) return NONE_VAL();
FUNC_NAME(list,sort)(hasKw ? 2 : 1,(KrkValue[]){listOut,hasKw ? argv[1] : NONE_VAL(), hasKw ? argv[2] : NONE_VAL()},hasKw);
FUNC_NAME(list,sort)(1,(KrkValue[]){listOut,hasKw ? argv[1] : NONE_VAL(), hasKw ? argv[2] : NONE_VAL()},hasKw);
if (!IS_NONE(krk_currentThread.currentException)) return NONE_VAL();
return krk_pop();
}
Expand Down

0 comments on commit 179b4e4

Please sign in to comment.