From a8629c62bd858b09e26871d79533c510226eafb0 Mon Sep 17 00:00:00 2001 From: twinaphex Date: Wed, 10 Dec 2014 17:59:24 +0100 Subject: [PATCH] (libretro-sdk/libco) Silence warnings --- libretro-sdk/libco/amd64.c | 2 +- libretro-sdk/libco/x86.c | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/libretro-sdk/libco/amd64.c b/libretro-sdk/libco/amd64.c index 5d74bf6538..a9f6ee5f01 100644 --- a/libretro-sdk/libco/amd64.c +++ b/libretro-sdk/libco/amd64.c @@ -134,7 +134,7 @@ cothread_t co_create(unsigned int size, void (*entrypoint)(void)) size += 512; /* allocate additional space for storage */ size &= ~15; /* align stack to 16-byte boundary */ - if(handle = (cothread_t)malloc(size)) + if((handle = (cothread_t)malloc(size))) { long long *p = (long long*)((char*)handle + size); /* seek to top of stack */ *--p = (long long)crash; /* crash if entrypoint returns */ diff --git a/libretro-sdk/libco/x86.c b/libretro-sdk/libco/x86.c index 5daffd9679..ae1676664b 100644 --- a/libretro-sdk/libco/x86.c +++ b/libretro-sdk/libco/x86.c @@ -90,7 +90,7 @@ cothread_t co_create(unsigned int size, void (*entrypoint)(void)) size += 256; /* allocate additional space for storage */ size &= ~15; /* align stack to 16-byte boundary */ - if(handle = (cothread_t)malloc(size)) + if((handle = (cothread_t)malloc(size))) { long *p = (long*)((char*)handle + size); /* seek to top of stack */ *--p = (long)crash; /* crash if entrypoint returns */