Skip to content

Commit

Permalink
removed extra parentheses
Browse files Browse the repository at this point in the history
  • Loading branch information
sreitshamer committed Jan 23, 2012
1 parent 1643016 commit 1312964
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion shared/RegexKitLite.m
Original file line number Diff line number Diff line change
Expand Up @@ -426,7 +426,7 @@ static BOOL setCacheSlotToString(RKLCacheSlot *cacheSlot, const NSRange *range,
else { // If the first pointer equality check failed, check the hash and length.
if(((isSetTo == NO) || (cacheSlot->setToIsImmutable == NO)) && (cacheSlot->setToString != NULL)) { isSetTo = ((cacheSlot->setToLength == matchLength) && (cacheSlot->setToHash == CFHash((CFStringRef)(matchString)))); }

if((isSetTo == YES)) { // Make sure that the UTF16 conversion cache is set to this string, if conversion is required.
if(isSetTo == YES) { // Make sure that the UTF16 conversion cache is set to this string, if conversion is required.
if((cacheSlot->setToNeedsConversion == YES) && (setCacheSlotToString(cacheSlot, matchRange, status, exception) == NO)) { *exception = RKLCAssert(@"Failed to set up UTF16 buffer."); goto exitNow; }
if(NSEqualRanges(cacheSlot->setToRange, *matchRange) == YES) { goto exitNow; } // Verify that the range to search is what the cached regex was prepped for last time.
}
Expand Down

0 comments on commit 1312964

Please sign in to comment.