From fa09d805e23c59cb881573a7a1aee5fbc5752ea2 Mon Sep 17 00:00:00 2001 From: Ginger Bill Date: Thu, 1 Sep 2016 20:38:44 +0100 Subject: Match statements; Type System change (Type_Record for all sum and product types) --- src/exact_value.cpp | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'src/exact_value.cpp') diff --git a/src/exact_value.cpp b/src/exact_value.cpp index f428c9834..44e291af0 100644 --- a/src/exact_value.cpp +++ b/src/exact_value.cpp @@ -26,6 +26,10 @@ struct ExactValue { }; }; +HashKey hash_exact_value(ExactValue v) { + return hashing_proc(&v, gb_size_of(ExactValue)); +} + ExactValue make_exact_value_bool(b32 b) { ExactValue result = {ExactValue_Bool}; result.value_bool = (b != 0); -- cgit v1.2.3