about summary refs log tree commit diff stats
diff options
context:
space:
mode:
authorKartik K. Agaram <vc@akkartik.com>2015-04-03 10:26:15 -0700
committerKartik K. Agaram <vc@akkartik.com>2015-04-03 10:26:15 -0700
commitd91de4b8baf849b08d6248f16c22ea6f9cd26c49 (patch)
tree367ac7dfcf58dc8c9811242b69360cc88d5570c1
parentaf329482ed8d65693462182df4917a53316d8890 (diff)
downloadmu-d91de4b8baf849b08d6248f16c22ea6f9cd26c49.tar.gz
1004
-rw-r--r--cpp/010vm6
1 files changed, 5 insertions, 1 deletions
diff --git a/cpp/010vm b/cpp/010vm
index 5c8e120c..39159e40 100644
--- a/cpp/010vm
+++ b/cpp/010vm
@@ -211,7 +211,11 @@ string slurp_until(istream& in, char delim) {
 }
 
 void dump_memory() {
-  for (unordered_map<int, int>::iterator p = Memory.begin(); p != Memory.end(); ++p) {
+  map<int, int> ordered(Memory.begin(), Memory.end());
+  for (map<int, int>::iterator p = ordered.begin(); p != ordered.end(); ++p) {
     cout << p->first << ": " << p->second << '\n';
   }
 }
+:(before "End Includes")
+#include <map>
+using std::map;