diff options
author | Kartik K. Agaram <vc@akkartik.com> | 2015-11-07 22:31:35 -0800 |
---|---|---|
committer | Kartik K. Agaram <vc@akkartik.com> | 2015-11-07 22:31:35 -0800 |
commit | 82c886d71c12ad902ea8b9c81c7993af7ddf2d2b (patch) | |
tree | dbeb619bbddfa7e342eebc08e18cfafd6a7299fe /043new.cc | |
parent | 562ceed016e00411407356cf6d7ec960b86811e1 (diff) | |
download | mu-82c886d71c12ad902ea8b9c81c7993af7ddf2d2b.tar.gz |
2392 - undo 2391
Yup, type ingredients were taking size 1 by default.
Diffstat (limited to '043new.cc')
-rw-r--r-- | 043new.cc | 5 |
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(); |