Fixing compiler warning "assignment in condition" (ARMCC)
parent
4b31f87fc8
commit
16d1323d59
|
@ -154,7 +154,8 @@
|
||||||
}
|
}
|
||||||
|
|
||||||
// We need to do this the hard way
|
// We need to do this the hard way
|
||||||
if ((new = gfxAlloc(sz)))
|
new = gfxAlloc(sz);
|
||||||
|
if (new)
|
||||||
return 0;
|
return 0;
|
||||||
memcpy(new, ptr, p->sz - sizeof(memslot));
|
memcpy(new, ptr, p->sz - sizeof(memslot));
|
||||||
gfxFree(ptr);
|
gfxFree(ptr);
|
||||||
|
|
Loading…
Reference in New Issue