about summary refs log tree commit diff stats
path: root/029tools.cc
diff options
context:
space:
mode:
authorKartik K. Agaram <vc@akkartik.com>2016-03-13 20:26:47 -0700
committerKartik K. Agaram <vc@akkartik.com>2016-03-13 20:26:47 -0700
commitb24eb4766ad12eceaafa2ee0d620e070e21a3293 (patch)
treed7efc84bce7cf75fa18792d02bceb15480690a2d /029tools.cc
parent95b2a140094697dec176167154f9b3b31c2ef70f (diff)
downloadmu-b24eb4766ad12eceaafa2ee0d620e070e21a3293.tar.gz
2773 - switch to 'int'
This should eradicate the issue of 2771.
Diffstat (limited to '029tools.cc')
-rw-r--r--029tools.cc12
1 files changed, 6 insertions, 6 deletions
diff --git a/029tools.cc b/029tools.cc
index 50d85e55..13c5172a 100644
--- a/029tools.cc
+++ b/029tools.cc
@@ -28,10 +28,10 @@ case TRACE: {
 }
 :(before "End Primitive Recipe Implementations")
 case TRACE: {
-  long long int depth = ingredients.at(0).at(0);
+  int depth = ingredients.at(0).at(0);
   string label = current_instruction().ingredients.at(1).name;
   ostringstream out;
-  for (long long int i = 2; i < SIZE(current_instruction().ingredients); ++i) {
+  for (int i = 2; i < SIZE(current_instruction().ingredients); ++i) {
     out << print_mu(current_instruction().ingredients.at(i), ingredients.at(i));
   }
   trace(depth, label) << out.str() << end();
@@ -51,7 +51,7 @@ case STASH: {
 :(before "End Primitive Recipe Implementations")
 case STASH: {
   ostringstream out;
-  for (long long int i = 0; i < SIZE(current_instruction().ingredients); ++i) {
+  for (int i = 0; i < SIZE(current_instruction().ingredients); ++i) {
     out << print_mu(current_instruction().ingredients.at(i), ingredients.at(i));
   }
   trace(2, "app") << out.str() << end();
@@ -232,7 +232,7 @@ case _PRINT: {
 }
 :(before "End Primitive Recipe Implementations")
 case _PRINT: {
-  for (long long int i = 0; i < SIZE(ingredients); ++i) {
+  for (int i = 0; i < SIZE(ingredients); ++i) {
     if (is_literal(current_instruction().ingredients.at(i))) {
       trace(9998, "run") << "$print: " << current_instruction().ingredients.at(i).name << end();
       if (has_property(current_instruction().ingredients.at(i), "newline"))
@@ -241,7 +241,7 @@ case _PRINT: {
         cout << current_instruction().ingredients.at(i).name;
     }
     else {
-      for (long long int j = 0; j < SIZE(ingredients.at(i)); ++j) {
+      for (int j = 0; j < SIZE(ingredients.at(i)); ++j) {
         trace(9998, "run") << "$print: " << ingredients.at(i).at(j) << end();
         if (j > 0) cout << " ";
         cout << no_scientific(ingredients.at(i).at(j));
@@ -319,7 +319,7 @@ case _LOG: {
 :(before "End Primitive Recipe Implementations")
 case _LOG: {
   ostringstream out;
-  for (long long int i = 0; i < SIZE(current_instruction().ingredients); ++i) {
+  for (int i = 0; i < SIZE(current_instruction().ingredients); ++i) {
     out << print_mu(current_instruction().ingredients.at(i), ingredients.at(i));
   }
   LOG << out.str() << '\n';