change int to size_t

This commit is contained in:
Yuichi Nishiwaki 2014-09-26 16:33:46 +09:00
parent f214cbf974
commit 0a23eb4f11
1 changed files with 1 additions and 1 deletions

View File

@ -57,7 +57,7 @@ pic_gensym(pic_state *pic, pic_sym base)
}
len = snprintf(NULL, 0, "%s%c%d", pic_symbol_name(pic, base), mark, uid);
str = pic_alloc(pic, len + 1);
str = pic_alloc(pic, (size_t)len + 1);
sprintf(str, "%s%c%d", pic_symbol_name(pic, base), mark, uid);
/* don't put the symbol to pic->syms to keep it uninterned */