From 6cc4de73bebd742973bb3a1446466f0f6f37fefa Mon Sep 17 00:00:00 2001 From: =?utf8?q?Alexis=20Laferri=C3=A8re?= Date: Sat, 12 Sep 2015 10:00:22 -0400 Subject: [PATCH] lib/c: contructors `from` for native arrays accept `SequenceRead` MIME-Version: 1.0 Content-Type: text/plain; charset=utf8 Content-Transfer-Encoding: 8bit Signed-off-by: Alexis Laferrière --- lib/c.nit | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/lib/c.nit b/lib/c.nit index deb6765..a9b04e1 100644 --- a/lib/c.nit +++ b/lib/c.nit @@ -93,8 +93,8 @@ class CIntArray super size end - # Build from an `Array[Int]` - new from(array: Array[Int]) + # Create from an `SequenceRead[Int]` + new from(array: SequenceRead[Int]) do var carray = new CIntArray(array.length) for i in array.length.times do @@ -129,7 +129,7 @@ class CByteArray super size end - # Build from a `SequenceRead[Byte]` + # Create from a `SequenceRead[Byte]` new from(array: SequenceRead[Byte]) do var carray = new CByteArray(array.length) @@ -166,8 +166,8 @@ class CNativeStringArray super size end - # Build from an `Array[NativeString]` - new from(array: Array[NativeString]) + # Create from an `SequenceRead[NativeString]` + new from(array: SequenceRead[NativeString]) do var carray = new CNativeStringArray(array.length) for i in array.length.times do -- 1.7.9.5