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 { ...@@ -115,16 +115,16 @@ namespace dynamicgraph {
{ {
switch(value.type_) { switch(value.type_) {
case BOOL: case BOOL:
value_ = new bool(value.intValue()); value_ = new bool(value.boolValue());
break; break;
case UNSIGNED: case UNSIGNED:
value_ = new unsigned(value.intValue()); value_ = new unsigned(value.unsignedValue());
break; break;
case INT: case INT:
value_ = new int(value.intValue()); value_ = new int(value.intValue());
break; break;
case FLOAT: case FLOAT:
value_ = new float(value.intValue()); value_ = new float(value.floatValue());
break; break;
case DOUBLE: case DOUBLE:
value_ = new double(value.doubleValue()); 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