diff --git a/Classes/AQGridViewUpdateItem.m b/Classes/AQGridViewUpdateItem.m index 3088d52..edbdc50 100644 --- a/Classes/AQGridViewUpdateItem.m +++ b/Classes/AQGridViewUpdateItem.m @@ -81,7 +81,7 @@ - (NSString *) description } NSString * animationDesc = @""; - switch ( _animation ) + switch ( (UITableViewRowAnimation)_animation ) { case UITableViewRowAnimationFade: animationDesc = @"Fade"; @@ -108,7 +108,7 @@ - (NSString *) description break; } - return ( [NSString stringWithFormat: @"%@{index=%u, action=%@, animation=%@, offset=%.02f}", [super description], (unsigned)_index, actionDesc, animationDesc, _offset] ); + return ( [NSString stringWithFormat: @"%@{index=%u, action=%@, animation=%@, offset=%.02f}", [super description], (unsigned)_index, actionDesc, animationDesc, (double)_offset] ); } - (NSComparisonResult) compare: (AQGridViewUpdateItem *) other