Integer Enumerations

This commit is contained in:
gingerBill
2016-08-22 15:43:13 +01:00
parent a98e93f03f
commit 81c592b5e9
10 changed files with 280 additions and 60 deletions
+1 -1
View File
@@ -26,7 +26,7 @@ win32_print_last_error :: proc() {
// Yuk!
to_c_string :: proc(s: string) -> ^u8 {
c_str: ^u8 = heap_alloc(len(s)+1);
c_str: ^u8 = alloc(len(s)+1);
memory_copy(c_str, ^s[0], len(s));
c_str[len(s)] = 0;
return c_str;