about summary refs log tree commit diff stats
path: root/011load.cc
diff options
context:
space:
mode:
authorKartik K. Agaram <vc@akkartik.com>2016-01-25 19:32:03 -0800
committerKartik K. Agaram <vc@akkartik.com>2016-01-25 19:32:03 -0800
commit8f0a9149536d951fc9d18e473d57a39efe3d9b7d (patch)
tree9f8a0e548639a39c555570a3744fea8a5bcbdb08 /011load.cc
parent50c4ac802eec5730d9dedc73fb51a34b73063f71 (diff)
downloadmu-8f0a9149536d951fc9d18e473d57a39efe3d9b7d.tar.gz
2603 - bugfix: defining main with commandline args
Pretty hacky fix: we simply suppress static dispatch for main.
Diffstat (limited to '011load.cc')
-rw-r--r--011load.cc2
1 files changed, 1 insertions, 1 deletions
diff --git a/011load.cc b/011load.cc
index 95631151..2c99bfff 100644
--- a/011load.cc
+++ b/011load.cc
@@ -59,7 +59,7 @@ long long int slurp_recipe(istream& in) {
   }
   slurp_body(in, result);
   // End recipe Body(result)
-  get_or_insert(Recipe, get(Recipe_ordinal, result.name)) = result;
+  put(Recipe, get(Recipe_ordinal, result.name), result);
   // track added recipes because we may need to undo them in tests; see below
   Recently_added_recipes.push_back(get(Recipe_ordinal, result.name));
   return get(Recipe_ordinal, result.name);