about summary refs log tree commit diff stats
path: root/cpp/022boolean.cc
diff options
context:
space:
mode:
authorKartik K. Agaram <vc@akkartik.com>2015-05-05 17:20:11 -0700
committerKartik K. Agaram <vc@akkartik.com>2015-05-05 17:34:18 -0700
commit6673e1fc4527147da453435203434394bbeaa513 (patch)
tree4d2fa9f732c2b229939bd450511b4c329085d036 /cpp/022boolean.cc
parentca12558ef7f0678cd7b4aee9e8dda459e61f1bc1 (diff)
downloadmu-6673e1fc4527147da453435203434394bbeaa513.tar.gz
1265
Diffstat (limited to 'cpp/022boolean.cc')
-rw-r--r--cpp/022boolean.cc16
1 files changed, 8 insertions, 8 deletions
diff --git a/cpp/022boolean.cc b/cpp/022boolean.cc
index 014774db..013519fd 100644
--- a/cpp/022boolean.cc
+++ b/cpp/022boolean.cc
@@ -7,12 +7,12 @@ Recipe_number["and"] = AND;
 :(before "End Primitive Recipe Implementations")
 case AND: {
   trace("run") << "ingredient 0 is " << current_instruction().ingredients[0].name;
-  vector<int> arg0 = read_memory(current_instruction().ingredients[0]);
+  vector<long long int> arg0 = read_memory(current_instruction().ingredients[0]);
   assert(arg0.size() == 1);
   trace("run") << "ingredient 1 is " << current_instruction().ingredients[1].name;
-  vector<int> arg1 = read_memory(current_instruction().ingredients[1]);
+  vector<long long int> arg1 = read_memory(current_instruction().ingredients[1]);
   assert(arg1.size() == 1);
-  vector<int> result;
+  vector<long long int> result;
   result.push_back(arg0[0] && arg1[0]);
   trace("run") << "product 0 is " << result[0];
   write_memory(current_instruction().products[0], result);
@@ -40,12 +40,12 @@ Recipe_number["or"] = OR;
 :(before "End Primitive Recipe Implementations")
 case OR: {
   trace("run") << "ingredient 0 is " << current_instruction().ingredients[0].name;
-  vector<int> arg0 = read_memory(current_instruction().ingredients[0]);
+  vector<long long int> arg0 = read_memory(current_instruction().ingredients[0]);
   assert(arg0.size() == 1);
   trace("run") << "ingredient 1 is " << current_instruction().ingredients[1].name;
-  vector<int> arg1 = read_memory(current_instruction().ingredients[1]);
+  vector<long long int> arg1 = read_memory(current_instruction().ingredients[1]);
   assert(arg1.size() == 1);
-  vector<int> result;
+  vector<long long int> result;
   result.push_back(arg0[0] || arg1[0]);
   trace("run") << "product 0 is " << result[0];
   write_memory(current_instruction().products[0], result);
@@ -73,9 +73,9 @@ Recipe_number["not"] = NOT;
 :(before "End Primitive Recipe Implementations")
 case NOT: {
   trace("run") << "ingredient 0 is " << current_instruction().ingredients[0].name;
-  vector<int> arg0 = read_memory(current_instruction().ingredients[0]);
+  vector<long long int> arg0 = read_memory(current_instruction().ingredients[0]);
   assert(arg0.size() == 1);
-  vector<int> result;
+  vector<long long int> result;
   result.push_back(!arg0[0]);
   trace("run") << "product 0 is " << result[0];
   write_memory(current_instruction().products[0], result);