Add Pointer Arithmetic

This commit is contained in:
Ginger Bill
2016-10-12 17:51:36 +01:00
parent f5318c46d1
commit f3209584a3
12 changed files with 414 additions and 173 deletions

View File

@@ -91,9 +91,9 @@ ExactValue make_exact_value_float(f64 f) {
return result;
}
ExactValue make_exact_value_pointer(void *ptr) {
ExactValue make_exact_value_pointer(i64 ptr) {
ExactValue result = {ExactValue_Pointer};
result.value_pointer = cast(i64)cast(intptr)ptr;
result.value_pointer = ptr;
return result;
}