compare int and size_t warning when DEBUG is on
This commit is contained in:
parent
69c1c8a916
commit
ce90e4a2a6
3
src/gc.c
3
src/gc.c
|
@ -183,9 +183,8 @@ gc_alloc(pic_state *pic, size_t size)
|
||||||
|
|
||||||
#if GC_DEBUG
|
#if GC_DEBUG
|
||||||
{
|
{
|
||||||
int i, j;
|
|
||||||
unsigned char *c;
|
unsigned char *c;
|
||||||
size_t s;
|
size_t s, i, j;
|
||||||
if (p->s.size == nunits) {
|
if (p->s.size == nunits) {
|
||||||
c = (unsigned char *)(p + p->s.size - nunits + 1);
|
c = (unsigned char *)(p + p->s.size - nunits + 1);
|
||||||
s = nunits - 1;
|
s = nunits - 1;
|
||||||
|
|
Loading…
Reference in New Issue