about summary refs log tree commit diff stats
path: root/021check_instruction.cc
diff options
context:
space:
mode:
authorKartik K. Agaram <vc@akkartik.com>2015-11-27 21:38:09 -0800
committerKartik K. Agaram <vc@akkartik.com>2015-11-27 21:38:09 -0800
commitfca48e92d4e51eb7e5b1a811b65e5d69fadeb713 (patch)
tree41bdb3252b20d563670e5db848cedc5c3be689cb /021check_instruction.cc
parent7f193a0e006c44604918b54c853bd49508dbe8fd (diff)
downloadmu-fca48e92d4e51eb7e5b1a811b65e5d69fadeb713.tar.gz
2483 - to-text can now handle lists
'append' also implicitly calls 'to-text' unless there's a better
variant.
Diffstat (limited to '021check_instruction.cc')
-rw-r--r--021check_instruction.cc4
1 files changed, 2 insertions, 2 deletions
diff --git a/021check_instruction.cc b/021check_instruction.cc
index 930eacde..76d3ddb2 100644
--- a/021check_instruction.cc
+++ b/021check_instruction.cc
@@ -124,8 +124,8 @@ bool types_match(type_tree* lhs, type_tree* rhs) {
     if (lhs->value == get(Type_ordinal, "address")) return false;
     return size_of(rhs) == size_of(lhs);
   }
-  if (lhs->value == get(Type_ordinal, "character") && rhs->value == get(Type_ordinal, "number")) return true;
-  if (lhs->value == get(Type_ordinal, "number") && rhs->value == get(Type_ordinal, "character")) return true;
+//?   if (lhs->value == get(Type_ordinal, "character") && rhs->value == get(Type_ordinal, "number")) return true;
+//?   if (lhs->value == get(Type_ordinal, "number") && rhs->value == get(Type_ordinal, "character")) return true;
   if (lhs->value != rhs->value) return false;
   return types_match(lhs->left, rhs->left) && types_match(lhs->right, rhs->right);
 }
>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
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98