Skip to content

Commit

Permalink
Update runtime library integer conversion to support reals
Browse files Browse the repository at this point in the history
  • Loading branch information
peterwvj committed Oct 25, 2016
1 parent 10f49a6 commit cb659be
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion c/vdmclib/src/main/VdmBasicTypes.c
Original file line number Diff line number Diff line change
Expand Up @@ -167,7 +167,7 @@ int toInteger(TVP a)
case VDM_NAT1:
return a->value.intVal;
case VDM_REAL:
//return a->value.doubleVal;
return a->value.doubleVal;
default:
FATAL_ERROR("Invalid type");
return 0;
Expand Down

0 comments on commit cb659be

Please sign in to comment.