File tree Expand file tree Collapse file tree 5 files changed +7
-7
lines changed Expand file tree Collapse file tree 5 files changed +7
-7
lines changed Original file line number Diff line number Diff line change @@ -9,7 +9,7 @@ extension Int {
9
9
let intValue = Int ( strValue) {
10
10
self . init ( intValue)
11
11
} else {
12
- self . init ( swiftvim_asint ( value. reference) )
12
+ self . init ( swiftvim_asnum ( value. reference) )
13
13
}
14
14
}
15
15
@@ -231,7 +231,7 @@ extension UnsafeVimValue {
231
231
self ,
232
232
UnsafeMutablePointer ( mutating: fCStr) )
233
233
}
234
- return Int ( swiftvim_asint ( value) )
234
+ return Int ( swiftvim_asnum ( value) )
235
235
}
236
236
}
237
237
Original file line number Diff line number Diff line change @@ -13,7 +13,7 @@ public class VimWindow {
13
13
}
14
14
let first = swiftvim_tuple_get ( cursor, 0 )
15
15
let second = swiftvim_tuple_get ( cursor, 1 )
16
- return ( Int ( swiftvim_asint ( first) ) , Int ( swiftvim_asint ( second) ) )
16
+ return ( Int ( swiftvim_asnum ( first) ) , Int ( swiftvim_asnum ( second) ) )
17
17
}
18
18
19
19
public var height : Int {
Original file line number Diff line number Diff line change @@ -9,7 +9,7 @@ void *_Nullable swiftvim_incref(void *_Nullable value);
9
9
10
10
// Value extraction
11
11
const char * _Nullable swiftvim_asstring (void * _Nullable value );
12
- int swiftvim_asint (void * _Nullable value );
12
+ long swiftvim_asnum (void * _Nullable value );
13
13
14
14
// List
15
15
int swiftvim_list_size (void * _Nonnull list );
Original file line number Diff line number Diff line change @@ -192,7 +192,7 @@ VIM_INTEN const char *swiftvim_asstring(void *value) {
192
192
return v ;
193
193
}
194
194
195
- VIM_INTEN int swiftvim_asint (void * value ) {
195
+ VIM_INTEN long swiftvim_asnum (void * value ) {
196
196
PyGILState_STATE gstate = PyGILState_Ensure ();
197
197
int v = PyLong_AsLong (value );
198
198
PyGILState_Release (gstate );
Original file line number Diff line number Diff line change @@ -47,7 +47,7 @@ class VimInterfaceTests: XCTestCase {
47
47
UnsafeMutablePointer ( mutating: moduleCStr) ,
48
48
UnsafeMutablePointer ( mutating: fCStr) ,
49
49
UnsafeMutablePointer ( mutating: argCStr) )
50
- let value = swiftvim_asint ( result)
50
+ let value = swiftvim_asnum ( result)
51
51
XCTAssertEqual ( value, 1 )
52
52
}
53
53
}
@@ -81,7 +81,7 @@ class VimInterfaceTests: XCTestCase {
81
81
UnsafeMutablePointer ( mutating: moduleCStr) ,
82
82
UnsafeMutablePointer ( mutating: fCStr) ,
83
83
UnsafeMutablePointer ( mutating: argCStr) )
84
- let value = swiftvim_asint ( result)
84
+ let value = swiftvim_asnum ( result)
85
85
XCTAssertEqual ( value, 1 )
86
86
}
87
87
}
You can’t perform that action at this time.
0 commit comments