Cast GetUnit to unsigned int in SpeedSegment::ToString to avoid crashing in ssprintf.
This commit is contained in:
@@ -211,7 +211,7 @@ RString SpeedSegment::ToString(int dec) const
|
||||
+ "f=%.0" + IntToString(dec) + "f=%.0"
|
||||
+ IntToString(dec) + "f=%u";
|
||||
return ssprintf(str.c_str(), GetBeat(), GetRatio(),
|
||||
GetDelay(), GetUnit());
|
||||
GetDelay(), static_cast<unsigned int>(GetUnit()));
|
||||
}
|
||||
|
||||
vector<float> SpeedSegment::GetValues() const
|
||||
|
||||
Reference in New Issue
Block a user