about summary refs log tree commit diff stats
path: root/082scenario_screen.cc
diff options
context:
space:
mode:
authorKartik K. Agaram <vc@akkartik.com>2016-03-13 19:42:30 -0700
committerKartik K. Agaram <vc@akkartik.com>2016-03-13 20:13:55 -0700
commitd1b8d5eeb230a0c4ee480c0d7d36a6663c73f3fd (patch)
treebfe137a1f4e2baaa470e1cb36c2ab61b3d6c0dba /082scenario_screen.cc
parent3e53459aaff03e42ba4610b08fa35783873b65b4 (diff)
downloadmu-d1b8d5eeb230a0c4ee480c0d7d36a6663c73f3fd.tar.gz
2771 - fix for clang on 32-bit machines
Turns out that LLVM/Clang still doesn't support multiplying 64-bit
numbers on a 32-bit platform.
  https://llvm.org/bugs/show_bug.cgi?id=14469

This is just a quick fix, because it turns out I don't have any integer
multiplication anywhere else. In the long run I think I'm going to just
drop 'long long int' in favor of 'int'. Overflow is less likely than
this configuration on somebody's machine.
Diffstat (limited to '082scenario_screen.cc')
-rw-r--r--082scenario_screen.cc4
1 files changed, 2 insertions, 2 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