pic_get_args: change type of argc

This commit is contained in:
Yuichi Nishiwaki 2013-11-18 01:07:51 +09:00
parent 6ac3055816
commit 6cfbe51c87
3 changed files with 6 additions and 4 deletions

View File

@ -121,7 +121,8 @@ static pic_value
pic_error_error(pic_state *pic) pic_error_error(pic_state *pic)
{ {
char *str; char *str;
int len, argc; int len;
size_t argc;
pic_value *argv; pic_value *argv;
struct pic_error *e; struct pic_error *e;

View File

@ -83,8 +83,9 @@ pic_number_nan_p(pic_state *pic)
static pic_value \ static pic_value \
pic_number_##name(pic_state *pic) \ pic_number_##name(pic_state *pic) \
{ \ { \
int argc, i; \ size_t argc; \
pic_value *argv; \ pic_value *argv; \
int i; \
double f,g; \ double f,g; \
\ \
pic_get_args(pic, "ff*", &f, &g, &argc, &argv); \ pic_get_args(pic, "ff*", &f, &g, &argc, &argv); \

View File

@ -246,10 +246,10 @@ pic_get_args(pic_state *pic, const char *format, ...)
} }
} }
if ('*' == c) { if ('*' == c) {
int *n; size_t *n;
pic_value **argv; pic_value **argv;
n = va_arg(ap, int *); n = va_arg(ap, size_t *);
argv = va_arg(ap, pic_value **); argv = va_arg(ap, pic_value **);
if (i <= argc) { if (i <= argc) {
*n = argc - i; *n = argc - i;