Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -133,7 +133,7 @@ public List<ISOEnumeratedMeter> CreateMeters(IEnumerable<ISOSpatialRow> spatialR

public EnumeratedValue GetValueForMeter(SpatialValue value, ISOEnumeratedMeter meter)// EnumeratedWorkingData meter)
{
var sectionValue = GetSectionValue((uint)(int)value.Value, meter.SectionIndex); //Mac arm processors fail to correctly decode the value without the double (uint)(int) cast
var sectionValue = GetSectionValue((uint)(int)value.Value, meter.SectionIndex); //Mac arm processors fail to correctly decode the value without the double (uint)(int) cast. Same behavior seen on .NET 10 for Windows. See https://stackoverflow.com/questions/79762063/different-result-by-cast-negative-double-to-uint-with-net-framework-4-7-2-and
var enumerationMember = SectionValueToEnumerationMember[(int)sectionValue];

return new EnumeratedValue
Expand All @@ -148,7 +148,7 @@ public EnumeratedValue GetValueForMeter(SpatialValue value, ISOEnumeratedMeter m

private int GetNumberOfInstalledSections(SpatialValue spatialValue)
{
var value = (uint)spatialValue.Value;
var value = (uint)(int)spatialValue.Value; //Mac arm processors fail to correctly decode the value without the double (uint)(int) cast. Same behavior seen on .NET 10 for Windows. See https://stackoverflow.com/questions/79762063/different-result-by-cast-negative-double-to-uint-with-net-framework-4-7-2-and
const uint notInstalledValue = 0x03;

for (int i = 1; i < 17; i++)
Expand Down
Loading