From 0801dc5f090adbf14be23a5680427086644c1778 Mon Sep 17 00:00:00 2001 From: cpasjuste Date: Wed, 14 Mar 2018 11:24:45 +0100 Subject: [PATCH] ipc.h: fix BufferType invalid conversion (c++) --- nx/include/switch/kernel/ipc.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/nx/include/switch/kernel/ipc.h b/nx/include/switch/kernel/ipc.h index 87514790..36290f06 100644 --- a/nx/include/switch/kernel/ipc.h +++ b/nx/include/switch/kernel/ipc.h @@ -395,7 +395,7 @@ static inline Result ipcParse(IpcParsedCommand* r) { r->Buffers[i] = (void*) (desc->Addr | ((packed >> 28) << 32) | (((packed >> 2) & 15) << 36)); r->BufferSizes[i] = desc->Size; - r->BufferTypes[i] = packed & 3; + r->BufferTypes[i] = (BufferType) (packed & 3); if (i < num_bufs_send) r->BufferDirections[i] = BufferDirection_Send;