aboutsummaryrefslogtreecommitdiff
path: root/src/types.c
diff options
context:
space:
mode:
authorGinger Bill <bill@gingerbill.org>2017-06-05 18:01:41 +0100
committerGinger Bill <bill@gingerbill.org>2017-06-05 18:01:41 +0100
commiteba2c74bff8f987e4bec7572cb3b2031261c237d (patch)
tree5751a6c8f4cfddb4938621f49861b9392b427292 /src/types.c
parentebe5beaafd90bccaee2ece8510e61d2cbf7a81c2 (diff)
Allow 128 bit map keys
Diffstat (limited to 'src/types.c')
-rw-r--r--src/types.c14
1 files changed, 7 insertions, 7 deletions
diff --git a/src/types.c b/src/types.c
index 91d8dc4eb..1364191d8 100644
--- a/src/types.c
+++ b/src/types.c
@@ -304,11 +304,12 @@ gb_global Type *t_untyped_nil = &basic_types[Basic_UntypedNil];
gb_global Type *t_byte = &basic_type_aliases[0];
gb_global Type *t_rune = &basic_type_aliases[1];
-gb_global Type *t_u8_ptr = NULL;
-gb_global Type *t_int_ptr = NULL;
-gb_global Type *t_i64_ptr = NULL;
-gb_global Type *t_f64_ptr = NULL;
-gb_global Type *t_byte_slice = NULL;
+gb_global Type *t_u8_ptr = NULL;
+gb_global Type *t_int_ptr = NULL;
+gb_global Type *t_i64_ptr = NULL;
+gb_global Type *t_i128_ptr = NULL;
+gb_global Type *t_f64_ptr = NULL;
+gb_global Type *t_byte_slice = NULL;
gb_global Type *t_string_slice = NULL;
@@ -874,8 +875,7 @@ bool is_type_valid_for_keys(Type *t) {
return false;
}
if (is_type_integer(t)) {
- // NOTE(bill): Not (u|i)128
- return t->Basic.size <= 8;
+ return true;
}
if (is_type_float(t)) {
return true;