From 96b25f178eedf10a8c2275e37df8e597b0e5e487 Mon Sep 17 00:00:00 2001 From: otya128 Date: Sat, 24 Dec 2016 19:43:00 +0900 Subject: [PATCH] Fix size_t --- SMILEBASIC/builtinfunctions.d | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/SMILEBASIC/builtinfunctions.d b/SMILEBASIC/builtinfunctions.d index ce5bb68..14480f6 100644 --- a/SMILEBASIC/builtinfunctions.d +++ b/SMILEBASIC/builtinfunctions.d @@ -2360,11 +2360,11 @@ class BuiltinFunction auto l = p.project.getFileList(project, res); if (l.length > array.length) { - array.length = l.length; + array.length = cast(int)l.length; } foreach (i, j; l) { - array[i] = Value(j); + array[i] = Value(cast(int)j); } } static void ACLS(PetitComputer p)