View Issue Details

IDProjectCategoryView StatusLast Update
0004168Slicer4Module OpenIGTLinkIFpublic2016-04-12 15:54
Reporterleochan2009Assigned Totokuda 
PrioritynormalSeverityminorReproducibilityalways
Status assignedResolutionopen 
PlatformMACOSOSOS VersionCaptian
Product Version 
Target VersionFixed in Version 
Summary0004168: IgtlUnit append function seems wrong, the variable m_NUnits is not incremented after one assignment.
Description

int Unit::Append(int unit, int exp)
{
// Check number of units already appended
if (this->m_NUnits >= 6)
{
return 0;
}

// Check range
if (unit < SI_BASE_NONE || unit >= SI_NUM_UNIT_TYPES)
{
return 0;
}
if (exp < -7 || exp > 7)
{
return 0;
}

// Append
this->m_Unit[this->m_NUnits] = (igtlUint8)unit;
this->m_Exp[this->m_NUnits] = (igtlInt8)exp;
return 1;
}

TagsNo tags attached.

Activities

There are no notes attached to this issue.

Issue History

Date Modified Username Field Change
2016-04-12 15:54 leochan2009 New Issue
2016-04-12 15:54 leochan2009 Status new => assigned
2016-04-12 15:54 leochan2009 Assigned To => tokuda