Update INTEROP.md

This commit is contained in:
SvyatoslavScherbina
2017-04-06 11:09:57 +03:00
committed by GitHub
parent 058bb728df
commit 2f90e3f055
+2 -2
View File
@@ -321,7 +321,7 @@ neither implicit integer casts nor C-style integer casts (e.g.
`(size_t) intValue`), so to make writing portable code in such cases easier,
the following methods are provided:
* `fun ${type1}.sizeExtend<${type2}>(): ${type2}`
* `fun ${type1}.signExtend<${type2}>(): ${type2}`
* `fun ${type1}.narrow<${type2}>(): ${type2}`
where each of `type1` and `type2` must be an integral type.
@@ -345,4 +345,4 @@ fun zeroMemory(buffer: COpaquePointer, size: Int) {
```
Also the type parameter can be inferred automatically and thus may be omitted
in some cases.
in some cases.