compare int and size_t warning when DEBUG is on

This commit is contained in:
Yuichi Nishiwaki 2014-01-19 00:54:56 -08:00
parent 69c1c8a916
commit ce90e4a2a6
1 changed files with 1 additions and 2 deletions

View File

@ -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;