From 9e86933229e6d6d45f0192a23e618557540d21d9 Mon Sep 17 00:00:00 2001 From: "Kartik K. Agaram" Date: Thu, 18 Jun 2015 11:16:37 -0700 Subject: 1593 --- 030container.cc | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to '030container.cc') diff --git a/030container.cc b/030container.cc index a1bb2290..9f337251 100644 --- a/030container.cc +++ b/030container.cc @@ -107,7 +107,8 @@ case GET: { 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); -- cgit 1.4.1-2-gfad0 'submit' value='switch'/> Soul of a tiny new machine. More thorough tests → More comprehensible and rewrite-friendly software → More resilient society.Kartik K. Agaram <vc@akkartik.com>
about summary refs log tree commit diff stats
path: root/Readme
blob: 614b605814d87873f65a5db70691044f4a61dff4 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18