Fixing compiler warning "assignment in condition" (ARMCC)
This commit is contained in:
parent
3d618f8a7a
commit
da2ee2d7ad
1 changed files with 2 additions and 1 deletions
|
@ -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…
Add table
Reference in a new issue