From 319cc578ca36db510580c1a64d165e7e95e51a7e Mon Sep 17 00:00:00 2001
From: yellows8 <yellows8@users.noreply.github.com>
Date: Wed, 17 Oct 2018 14:47:14 -0400
Subject: [PATCH] Fixed swapped params for memalign in jitCreate().

---
 nx/source/kernel/jit.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/nx/source/kernel/jit.c b/nx/source/kernel/jit.c
index 5715048c..455ca6b7 100644
--- a/nx/source/kernel/jit.c
+++ b/nx/source/kernel/jit.c
@@ -30,7 +30,7 @@ Result jitCreate(Jit* j, size_t size)
 
     size = (size + 0xFFF) &~ 0xFFF;
 
-    void* src_addr = memalign(size, 0x1000);
+    void* src_addr = memalign(0x1000, size);
 
     if (src_addr == NULL)
         return MAKERESULT(Module_Libnx, LibnxError_OutOfMemory);