sublist fix

master
Daniel Kolesa 2016-10-24 02:38:52 +02:00
parent 61135fb79b
commit 4d830b08ad
1 changed files with 1 additions and 1 deletions

View File

@ -167,7 +167,7 @@ void cs_init_lib_list(CsState &gcs) {
gcs.new_command("sublist", "siiN", [](auto &cs, auto args, auto &res) {
CsInt skip = args[1].get_int(),
count = args[2].get_int(),
numargs = args[2].get_int();
numargs = args[3].get_int();
CsInt offset = ostd::max(skip, CsInt(0)),
len = (numargs >= 3) ? ostd::max(count, CsInt(0)) : -1;