about summary refs log tree commit diff stats
path: root/030container.cc
diff options
context:
space:
mode:
Diffstat (limited to '030container.cc')
-rw-r--r--030container.cc3
1 files changed, 2 insertions, 1 deletions
diff --git a/030container.cc b/030container.cc
index 9f337251..cff5dcf1 100644
--- a/030container.cc
+++ b/030container.cc
@@ -156,7 +156,8 @@ case GET_ADDRESS: {
   reagent base = current_instruction().ingredients.at(0);
   long long int base_address = base.value;
   type_number base_type = base.types.at(0);
-  assert(Type[base_type].kind == container);
+  if (Type[base_type].kind != container)
+    raise << "'get' on a non-container in " << current_recipe_name () << ": " << current_instruction().to_string() << '\n' << die();
   assert(is_literal(current_instruction().ingredients.at(1)));
   assert(scalar(ingredients.at(1)));
   long long int offset = ingredients.at(1).at(0);
98' href='/akkartik/mu/commit/064write-byte.subx?h=hlt&id=7a5832204a80ff43d23c3a384c26e2217ef5908b'>7a583220 ^
33352536 ^

d134a83b ^
a9e0cb7c ^
33352536 ^





bfcc0f85 ^
33352536 ^
6070c23e ^
d134a83b ^


33352536 ^


d134a83b ^
33352536 ^
d134a83b ^

33352536 ^

a9e0cb7c ^
7a583220 ^
33352536 ^

d134a83b ^


0e9503d7 ^
d134a83b ^










33352536 ^
d134a83b ^






33352536 ^
d134a83b ^







33352536 ^
d134a83b ^


83822d63 ^
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79