Skip to content

Commit

Permalink
Bug #208 cast to ushort can convert .57*100 to 56 instead of 57. Use …
Browse files Browse the repository at this point in the history
…Convert.ToUInt16 instead
  • Loading branch information
PeterVermont committed Feb 8, 2019
1 parent d24845e commit d5de161
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion DaySim.Framework/Roster/OMXSkimFileReader.cs
Original file line number Diff line number Diff line change
Expand Up @@ -115,7 +115,7 @@ public SkimMatrix Read(string fileNameAndGroupAndDataTable, int field, float sca
value = ushort.MaxValue - 1;
}

_matrix[mappedRow][mappedCol] = (ushort)value;
_matrix[mappedRow][mappedCol] = Convert.ToUInt16(value);
}
}
}
Expand Down

0 comments on commit d5de161

Please sign in to comment.