about summary refs log tree commit diff stats
path: root/043new.cc
diff options
context:
space:
mode:
authorKartik K. Agaram <vc@akkartik.com>2015-11-07 22:31:35 -0800
committerKartik K. Agaram <vc@akkartik.com>2015-11-07 22:31:35 -0800
commit82c886d71c12ad902ea8b9c81c7993af7ddf2d2b (patch)
treedbeb619bbddfa7e342eebc08e18cfafd6a7299fe /043new.cc
parent562ceed016e00411407356cf6d7ec960b86811e1 (diff)
downloadmu-82c886d71c12ad902ea8b9c81c7993af7ddf2d2b.tar.gz
2392 - undo 2391
Yup, type ingredients were taking size 1 by default.
Diffstat (limited to '043new.cc')
-rw-r--r--043new.cc5
1 files changed, 4 insertions, 1 deletions
diff --git a/043new.cc b/043new.cc
index 96b2fe37..bc552362 100644
--- a/043new.cc
+++ b/043new.cc
@@ -61,11 +61,14 @@ void transform_new_to_allocate(const recipe_ordinal r) {
     // Convert 'new' To 'allocate'
     if (inst.name == "new") {
       inst.operation = ALLOCATE;
-      cerr << inst.ingredients.at(0).name << '\n';
+//?       istringstream in(inst.ingredients.at(0).name);
+//?       in >> std::noskipws;
+      cerr << "new: " << inst.ingredients.at(0).name << '\n';
       string_tree* type_name = new string_tree(inst.ingredients.at(0).name);
       // End Post-processing(type_name) When Converting 'new'
       type_tree* type = new_type_tree(type_name);
       inst.ingredients.at(0).set_value(size_of(type));
+      cerr << "=> " << inst.ingredients.at(0).value << '\n';
       ostringstream out;
       dump_property(type_name, out);
       trace(9992, "new") << "size of " << out.str() << " is " << inst.ingredients.at(0).value << end();