Browse Source

Type conversion bug.

git-svn-id: https://www.prismmodelchecker.org/svn/prism/prism/trunk@5389 bbc10eb1-c90d-0410-af57-cb519fbb1720
master
Dave Parker 14 years ago
parent
commit
f19c4238d3
  1. 2
      prism/src/parser/type/TypeDouble.java

2
prism/src/parser/type/TypeDouble.java

@ -75,7 +75,7 @@ public class TypeDouble extends Type
if (value instanceof Double) if (value instanceof Double)
return (Double) value; return (Double) value;
if (value instanceof Integer) if (value instanceof Integer)
return new Double(((Double) value).doubleValue());
return new Double(((Integer) value).intValue());
else else
throw new PrismLangException("Can't convert " + value.getClass() + " to type " + getTypeString()); throw new PrismLangException("Can't convert " + value.getClass() + " to type " + getTypeString());
} }

Loading…
Cancel
Save