From f408476c551e811ee8488c06b34523990c98d061 Mon Sep 17 00:00:00 2001 From: =?utf8?q?Alexis=20Laferri=C3=A8re?= Date: Thu, 16 Mar 2017 21:40:48 -0400 Subject: [PATCH] c & matrix: make some services public for low level clients MIME-Version: 1.0 Content-Type: text/plain; charset=utf8 Content-Transfer-Encoding: 8bit Signed-off-by: Alexis Laferrière --- lib/c.nit | 2 +- lib/matrix/matrix.nit | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/lib/c.nit b/lib/c.nit index 55a89a0..7db5945 100644 --- a/lib/c.nit +++ b/lib/c.nit @@ -30,7 +30,7 @@ abstract class CArray[E] # Pointer to the real C array var native_array: NATIVE is noinit - private init(length: Int) is old_style_init do self._length = length + init(length: Int) is old_style_init do self._length = length redef fun [](index) do diff --git a/lib/matrix/matrix.nit b/lib/matrix/matrix.nit index 73131ca..91adb80 100644 --- a/lib/matrix/matrix.nit +++ b/lib/matrix/matrix.nit @@ -28,7 +28,7 @@ class Matrix var height: Int # Items of this matrix, rows by rows - private var items: Array[Float] is lazy do + var items: Array[Float] is lazy do return new Array[Float].filled_with(0.0, width*height) end -- 1.7.9.5