Initial Demo001 code for tour of language

This commit is contained in:
Ginger Bill
2016-08-19 15:35:48 +01:00
parent ddb15e73c0
commit 745237459a
7 changed files with 582 additions and 38 deletions

View File

@@ -108,6 +108,8 @@ ExactValue exact_value_to_integer(ExactValue v) {
return v;
case ExactValue_Float:
return make_exact_value_integer(cast(i64)v.value_float);
case ExactValue_Pointer:
return make_exact_value_integer(cast(i64)cast(intptr)v.value_pointer);
}
ExactValue r = {ExactValue_Invalid};
return r;