Remove unneeded long cast

This commit is contained in:
Kevin Sawicki 2017-03-14 13:59:29 -07:00
parent 8b7675baee
commit 6175ee05e2

View file

@ -585,7 +585,7 @@ static NSString* const ImageScrubberItemIdentifier = @"scrubber.image.item";
std::vector<mate::PersistentDictionary> items;
if (!settings.Get("items", &items)) return nil;
if ((long)index >= (long)items.size()) return nil;
if (index >= (long)items.size()) return nil;
mate::PersistentDictionary item = items[index];