mirror of
https://github.com/apple/swift.git
synced 2025-12-21 12:14:44 +01:00
[stdlib] revert r18764.
Swift SVN r18765
This commit is contained in:
@@ -339,7 +339,7 @@ struct _StringCore {
|
||||
}
|
||||
else if newSize > buffer.capacity {
|
||||
// Growth failed because of insufficient storage; double the size
|
||||
return (max2(buffer.capacity * 2, newSize), .null())
|
||||
return (max(buffer.capacity * 2, newSize), .null())
|
||||
}
|
||||
}
|
||||
return (newSize, .null())
|
||||
|
||||
Reference in New Issue
Block a user