throw an error when finding invalid argument specifier
This commit is contained in:
parent
779199d571
commit
828606aed5
|
@ -198,7 +198,7 @@ pic_number_atan(pic_state *pic)
|
||||||
double f,g;
|
double f,g;
|
||||||
int argc;
|
int argc;
|
||||||
|
|
||||||
argc = pic_get_args(pic, "f|g", &f, &g);
|
argc = pic_get_args(pic, "f|f", &f, &g);
|
||||||
if (argc == 1) {
|
if (argc == 1) {
|
||||||
f = atan(f);
|
f = atan(f);
|
||||||
return pic_float_value(f);
|
return pic_float_value(f);
|
||||||
|
|
Loading…
Reference in New Issue