From 16d1323d59ebf30909222a2d663c4c1f52de8362 Mon Sep 17 00:00:00 2001 From: Joel Bodenmann Date: Mon, 19 Oct 2015 22:22:50 +0200 Subject: [PATCH] Fixing compiler warning "assignment in condition" (ARMCC) --- src/gos/gos_x_heap.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/gos/gos_x_heap.c b/src/gos/gos_x_heap.c index 94b74d37..e8faa02f 100644 --- a/src/gos/gos_x_heap.c +++ b/src/gos/gos_x_heap.c @@ -154,7 +154,8 @@ } // We need to do this the hard way - if ((new = gfxAlloc(sz))) + new = gfxAlloc(sz); + if (new) return 0; memcpy(new, ptr, p->sz - sizeof(memslot)); gfxFree(ptr);