Skip to content

Commit a629eb3

Browse files
committed
Correct feedback from @drodriguez.
1 parent 808d760 commit a629eb3

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

CoreFoundation/Locale.subproj/CFDateFormatter.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1524,7 +1524,7 @@ static UDate __CFDateFormatterCorrectTimeToARangeAroundCurrentDate(UCalendar *ca
15241524
}
15251525
} else {
15261526
if (period < INT_MAX && futureMax > period) {
1527-
futureRange.location = 1,
1527+
futureRange.location = 1;
15281528
futureRange.length = futureMax - period;
15291529
}
15301530
if (pastMin <= 0) {

Foundation/NSData.swift

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1140,5 +1140,5 @@ extension NSData : _StructTypeBridgeable {
11401140
}
11411141

11421142
internal func _CFSwiftDataCreateCopy(_ data: AnyObject) -> Unmanaged<AnyObject> {
1143-
return Unmanaged<AnyObject>.passRetained((data as! NSDictionary).copy() as! NSObject)
1143+
return Unmanaged<AnyObject>.passRetained((data as! NSData).copy() as! NSObject)
11441144
}

0 commit comments

Comments
 (0)