From 2f90e3f0556a9127cb4ad9cbef291a5dcfbaa9f1 Mon Sep 17 00:00:00 2001 From: SvyatoslavScherbina Date: Thu, 6 Apr 2017 11:09:57 +0300 Subject: [PATCH] Update INTEROP.md --- INTEROP.md | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/INTEROP.md b/INTEROP.md index cd337aa3558..ac427035b8e 100644 --- a/INTEROP.md +++ b/INTEROP.md @@ -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. \ No newline at end of file +in some cases.