Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix #940. another loop bounds crash #941

Merged
merged 1 commit into from
Apr 12, 2016
Merged
Show file tree
Hide file tree
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 @@ -108,7 +108,7 @@ public class BarChartDataSet: BarLineScatterCandleBubbleChartDataSet, IBarChartD
_yMin = DBL_MAX
_yMax = -DBL_MAX

for i in start ... endValue
for i in start.stride(through: endValue, by: 1)
{
if let e = _yVals[i] as? BarChartDataEntry
{
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -55,7 +55,7 @@ public class BubbleChartDataSet: BarLineScatterCandleBubbleChartDataSet, IBubble
_yMin = yMin(entries[start])
_yMax = yMax(entries[start])

for i in start ... endValue
for i in start.stride(through: endValue, by: 1)
{
let entry = entries[i]

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -58,7 +58,7 @@ public class CandleChartDataSet: LineScatterCandleRadarChartDataSet, ICandleChar
_yMin = DBL_MAX
_yMax = -DBL_MAX

for i in start ... endValue
for i in start.stride(through: endValue, by: 1)
{
let e = entries[i]

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -110,7 +110,7 @@ public class ChartDataSet: ChartBaseDataSet
_yMin = DBL_MAX
_yMax = -DBL_MAX

for i in start ... endValue
for i in start.stride(through: endValue, by: 1)
{
let e = _yVals[i]

Expand Down
2 changes: 1 addition & 1 deletion ChartsRealm/Classes/Data/RealmBarDataSet.swift
Original file line number Diff line number Diff line change
Expand Up @@ -172,7 +172,7 @@ public class RealmBarDataSet: RealmBarLineScatterCandleBubbleDataSet, IBarChartD
_yMin = DBL_MAX
_yMax = -DBL_MAX

for i in start ... endValue
for i in start.stride(through: endValue, by: 1)
{
if let e = _cache[i - _cacheFirst] as? BarChartDataEntry
{
Expand Down
2 changes: 1 addition & 1 deletion ChartsRealm/Classes/Data/RealmBaseDataSet.swift
Original file line number Diff line number Diff line change
Expand Up @@ -252,7 +252,7 @@ public class RealmBaseDataSet: ChartBaseDataSet
_yMin = DBL_MAX
_yMax = -DBL_MAX

for i in start ... endValue
for i in start.stride(through: endValue, by: 1)
{
let e = _cache[i - _cacheFirst]

Expand Down
2 changes: 1 addition & 1 deletion ChartsRealm/Classes/Data/RealmBubbleDataSet.swift
Original file line number Diff line number Diff line change
Expand Up @@ -101,7 +101,7 @@ public class RealmBubbleDataSet: RealmBarLineScatterCandleBubbleDataSet, IBubble
_yMin = yMin(_cache[start - _cacheFirst] as! BubbleChartDataEntry)
_yMax = yMax(_cache[start - _cacheFirst] as! BubbleChartDataEntry)

for i in start ... endValue
for i in start.stride(through: endValue, by: 1)
{
let entry = _cache[i - _cacheFirst] as! BubbleChartDataEntry

Expand Down
2 changes: 1 addition & 1 deletion ChartsRealm/Classes/Data/RealmCandleDataSet.swift
Original file line number Diff line number Diff line change
Expand Up @@ -108,7 +108,7 @@ public class RealmCandleDataSet: RealmLineScatterCandleRadarDataSet, ICandleChar
_yMin = DBL_MAX
_yMax = -DBL_MAX

for i in start ... endValue
for i in start.stride(through: endValue, by: 1)
{
let e = _cache[i - _cacheFirst] as! CandleChartDataEntry

Expand Down