Skip to content
Snippets Groups Projects
Commit e5f8b483 authored by Florent Lamiraux's avatar Florent Lamiraux
Browse files

Fix bug in copy constructor of Value class

    * src/command/value.cpp.
parent fda270a9
No related branches found
No related tags found
No related merge requests found
......@@ -115,16 +115,16 @@ namespace dynamicgraph {
{
switch(value.type_) {
case BOOL:
value_ = new bool(value.intValue());
value_ = new bool(value.boolValue());
break;
case UNSIGNED:
value_ = new unsigned(value.intValue());
value_ = new unsigned(value.unsignedValue());
break;
case INT:
value_ = new int(value.intValue());
break;
case FLOAT:
value_ = new float(value.intValue());
value_ = new float(value.floatValue());
break;
case DOUBLE:
value_ = new double(value.doubleValue());
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment