MatthewYork / DateTools

Dates and times made easy in iOS
MIT License
7.22k stars 951 forks source link

Clean up warning #267

Closed BadChoice closed 4 years ago

BadChoice commented 6 years ago

There is a warning that appears in the last xcode version in DTTimePeriodChain.m at line 149

The solution is easy, replace the line

[((DTTimePeriod *) obj) shiftEarlierWithSize:DTTimePeriodSizeSecond amount:[periods[0] durationInSeconds]];

for

[((DTTimePeriod *) obj) shiftEarlierWithSize:DTTimePeriodSizeSecond amount:[self->periods[0] durationInSeconds]];

Let me know if you want a PR for this

jnavarrom commented 6 years ago

The PR #266 silence this warning

BadChoice commented 6 years ago

Great! thank you!

MatthewYork commented 4 years ago

Fixed in release 5.0.0