From eb9c74a1edffe2b2c8cad2e93d792b430413621c Mon Sep 17 00:00:00 2001 From: Aurora Date: Mon, 18 Jul 2016 15:46:29 +0200 Subject: [PATCH] Bool-ify --- source/screen.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/source/screen.c b/source/screen.c index f2db4d4..93258ff 100644 --- a/source/screen.c +++ b/source/screen.c @@ -48,13 +48,13 @@ void __attribute__((naked)) arm11Stub(void) static inline void invokeArm11Function(void (*func)()) { - static u32 hasCopiedStub = 0; + static bool hasCopiedStub = false; if(!hasCopiedStub) { memcpy((void *)ARM11_STUB_ADDRESS, arm11Stub, 0x40); flushDCacheRange((void *)ARM11_STUB_ADDRESS, 0x40); - hasCopiedStub = 1; + hasCopiedStub = true; } *arm11Entry = (u32)func;