[bugfix] return value from pic_get_args does not include proc object
This commit is contained in:
parent
76220e1e8e
commit
4fd99b5955
src
|
@ -386,9 +386,9 @@ pic_str_string_fill_ip(pic_state *pic)
|
||||||
n = pic_get_args(pic, "sc|ii", &str, &c, &start, &end);
|
n = pic_get_args(pic, "sc|ii", &str, &c, &start, &end);
|
||||||
|
|
||||||
switch (n) {
|
switch (n) {
|
||||||
case 1:
|
|
||||||
start = 0;
|
|
||||||
case 2:
|
case 2:
|
||||||
|
start = 0;
|
||||||
|
case 3:
|
||||||
end = pic_strlen(str);
|
end = pic_strlen(str);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue