about summary refs log tree commit diff stats
diff options
context:
space:
mode:
-rw-r--r--082scenario_screen.cc4
-rw-r--r--085scenario_console.cc2
2 files changed, 3 insertions, 3 deletions
diff --git a/082scenario_screen.cc b/082scenario_screen.cc
index 579d9b9a..560d0079 100644
--- a/082scenario_screen.cc
+++ b/082scenario_screen.cc
@@ -341,9 +341,9 @@ void dump_screen() {
   assert(!current_call().default_space);  // not supported
   long long int screen_location = get_or_insert(Memory, SCREEN) + /*skip refcount*/1;
   int width_offset = find_element_name(get(Type_ordinal, "screen"), "num-columns", "");
-  long long int screen_width = get_or_insert(Memory, screen_location+width_offset);
+  int screen_width = get_or_insert(Memory, screen_location+width_offset);
   int height_offset = find_element_name(get(Type_ordinal, "screen"), "num-rows", "");
-  long long int screen_height = get_or_insert(Memory, screen_location+height_offset);
+  int screen_height = get_or_insert(Memory, screen_location+height_offset);
   int data_offset = find_element_name(get(Type_ordinal, "screen"), "data", "");
   assert(data_offset >= 0);
   long long int screen_data_location = screen_location+data_offset;  // type: address:shared:array:character
diff --git a/085scenario_console.cc b/085scenario_console.cc
index bba0769e..99b044fa 100644
--- a/085scenario_console.cc
+++ b/085scenario_console.cc
@@ -52,7 +52,7 @@ case ASSUME_CONSOLE: {
   istringstream in("[" + current_instruction().ingredients.at(0).name + "]");
   recipe r;
   slurp_body(in, r);
-  long long int num_events = count_events(r);
+  int num_events = count_events(r);
   // initialize the events like in new-fake-console
   long long int size = /*space for refcount*/1 + /*space for length*/1 + num_events*size_of_event();
   ensure_space(size);