change int to size_t
This commit is contained in:
parent
f214cbf974
commit
0a23eb4f11
2
symbol.c
2
symbol.c
|
@ -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 */
|
||||
|
|
Loading…
Reference in New Issue