diff kernel/memory.c3 @ 301:6753763d3bec

merge codegen into ppci package
author Windel Bouwman
date Thu, 05 Dec 2013 17:02:38 +0100
parents 9417caea2eb3
children
line wrap: on
line diff
--- a/kernel/memory.c3	Tue Dec 03 18:00:22 2013 +0100
+++ b/kernel/memory.c3	Thu Dec 05 17:02:38 2013 +0100
@@ -2,12 +2,12 @@
 
 import process;
 
-var u8* ptr;
+var int ptr;
 
 function u8* Alloc(int size)
 {
     ptr = ptr + size;
-    return ptr;
+    return cast<u8*>(ptr);
 }