File tree Expand file tree Collapse file tree 2 files changed +5
-5
lines changed Expand file tree Collapse file tree 2 files changed +5
-5
lines changed Original file line number Diff line number Diff line change @@ -1264,7 +1264,7 @@ extension NSNotification.Name {
1264
1264
// or quantities of the units.
1265
1265
// When you create a new one of these, all values begin Undefined.
1266
1266
1267
- public var NSDateComponentUndefined : Int = LONG_MAX
1267
+ public var NSDateComponentUndefined : Int = Int . max
1268
1268
1269
1269
open class NSDateComponents : NSObject , NSCopying , NSSecureCoding {
1270
1270
internal var _calendar : Calendar ?
Original file line number Diff line number Diff line change @@ -89,8 +89,8 @@ open class Thread : NSObject {
89
89
var ti = end_at - start_at
90
90
let end_ut = start_ut + ti
91
91
while ( 0.0 < ti) {
92
- var __ts__ = timespec ( tv_sec: LONG_MAX , tv_nsec: 0 )
93
- if ti < Double ( LONG_MAX ) {
92
+ var __ts__ = timespec ( tv_sec: Int . max , tv_nsec: 0 )
93
+ if ti < Double ( Int . max ) {
94
94
var integ = 0.0
95
95
let frac : Double = withUnsafeMutablePointer ( to: & integ) { integp in
96
96
return modf ( ti, integp)
@@ -110,8 +110,8 @@ open class Thread : NSObject {
110
110
let start_ut = CFGetSystemUptime ( )
111
111
let end_ut = start_ut + ti
112
112
while 0.0 < ti {
113
- var __ts__ = timespec ( tv_sec: LONG_MAX , tv_nsec: 0 )
114
- if ti < Double ( LONG_MAX ) {
113
+ var __ts__ = timespec ( tv_sec: Int . max , tv_nsec: 0 )
114
+ if ti < Double ( Int . max ) {
115
115
var integ = 0.0
116
116
let frac : Double = withUnsafeMutablePointer ( to: & integ) { integp in
117
117
return modf ( ti, integp)
You can’t perform that action at this time.
0 commit comments