From 2eb6b4c8bb2f97bdec60f927aa64d2bc292829ac Mon Sep 17 00:00:00 2001 From: Bofei Zhu Date: Wed, 25 Jul 2018 12:14:45 -0700 Subject: [PATCH] Fixed assertion #trivial (#1203) Summary: Fixed the order of variables in this assertion. - [x] All tests pass. Demo project builds and runs. - [x] I added tests, an experiment, or detailed why my change isn't tested. - [x] I added an entry to the `CHANGELOG.md` for any breaking changes, enhancements, or bug fixes. - [x] I have reviewed the [contributing guide](https://github.com/Instagram/IGListKit/blob/master/.github/CONTRIBUTING.md) Pull Request resolved: https://github.com/Instagram/IGListKit/pull/1203 Differential Revision: D8770959 Pulled By: rnystrom fbshipit-source-id: 982996cc218d5db32a0fb67d045ac05870741d71 --- Source/Common/IGListDiff.mm | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Source/Common/IGListDiff.mm b/Source/Common/IGListDiff.mm index 6389da34..2ababb61 100644 --- a/Source/Common/IGListDiff.mm +++ b/Source/Common/IGListDiff.mm @@ -298,8 +298,8 @@ static id IGListDiffing(BOOL returnIndexPaths, } NSCAssert((oldCount + [mInserts count] - [mDeletes count]) == newCount, - @"Sanity check failed applying %li inserts and %lu deletes to old count %lu equaling new count %li", - (long)oldCount, (unsigned long)[mInserts count], (unsigned long)[mDeletes count], (long)newCount); + @"Sanity check failed applying %lu inserts and %lu deletes to old count %li equaling new count %li", + (unsigned long)[mInserts count], (unsigned long)[mDeletes count], (long)oldCount, (long)newCount); if (returnIndexPaths) { return [[IGListIndexPathResult alloc] initWithInserts:mInserts