Cast GetUnit to unsigned int in SpeedSegment::ToString to avoid crashing in ssprintf.

This commit is contained in:
Kyzentun Keeslala
2015-11-18 20:07:49 -07:00
parent 1adada6f77
commit 9739fd417c
+1 -1
View File
@@ -211,7 +211,7 @@ RString SpeedSegment::ToString(int dec) const
+ "f=%.0" + IntToString(dec) + "f=%.0" + "f=%.0" + IntToString(dec) + "f=%.0"
+ IntToString(dec) + "f=%u"; + IntToString(dec) + "f=%u";
return ssprintf(str.c_str(), GetBeat(), GetRatio(), return ssprintf(str.c_str(), GetBeat(), GetRatio(),
GetDelay(), GetUnit()); GetDelay(), static_cast<unsigned int>(GetUnit()));
} }
vector<float> SpeedSegment::GetValues() const vector<float> SpeedSegment::GetValues() const