From 91c9d003a9c13313a56ae6247fc893ed004367d4 Mon Sep 17 00:00:00 2001 From: otya128 Date: Tue, 23 Feb 2016 21:28:13 +0900 Subject: [PATCH] =?UTF-8?q?size=5Ft=E4=BD=BF=E3=81=86=E3=82=88=E3=81=86?= =?UTF-8?q?=E3=81=AB?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- SMILEBASIC/builtinfunctions.d | 2 +- SMILEBASIC/compiler.d | 2 +- SMILEBASIC/parser.d | 4 ++-- SMILEBASIC/project.d | 2 +- 4 files changed, 5 insertions(+), 5 deletions(-) diff --git a/SMILEBASIC/builtinfunctions.d b/SMILEBASIC/builtinfunctions.d index 91700ec..85844bc 100644 --- a/SMILEBASIC/builtinfunctions.d +++ b/SMILEBASIC/builtinfunctions.d @@ -67,7 +67,7 @@ class BuiltinFunctions { this.func ~= func; } - BuiltinFunction overloadResolution(int argc, int outargc) + BuiltinFunction overloadResolution(size_t argc, size_t outargc) { BuiltinFunction va; //とりあえず引数の数で解決させる,というよりコンパイル時に型を取得する方法がない diff --git a/SMILEBASIC/compiler.d b/SMILEBASIC/compiler.d index 90970c7..c68ce77 100644 --- a/SMILEBASIC/compiler.d +++ b/SMILEBASIC/compiler.d @@ -8,7 +8,7 @@ import otya.smilebasic.systemvariable; import std.stdio; class DebugInfo { - int old; + sizediff_t old; std.container.Array!SourceLocation location; this() { diff --git a/SMILEBASIC/parser.d b/SMILEBASIC/parser.d index 86bd828..856af56 100644 --- a/SMILEBASIC/parser.d +++ b/SMILEBASIC/parser.d @@ -387,9 +387,9 @@ class Parser wstring getLine(SourceLocation loc) { import std.string; - int mae = code[0 .. loc.pos2].lastIndexOf('\n'); + auto mae = code[0 .. loc.pos2].lastIndexOf('\n'); mae++; - int ushiro = code[mae..$].indexOf('\n'); + auto ushiro = code[mae..$].indexOf('\n'); if(ushiro == -1) ushiro = code.length; return code[mae .. mae + ushiro]; } diff --git a/SMILEBASIC/project.d b/SMILEBASIC/project.d index 3f51bce..7c74def 100644 --- a/SMILEBASIC/project.d +++ b/SMILEBASIC/project.d @@ -115,4 +115,4 @@ class Projects contents = readText(path).to!wstring; return true; } -} \ No newline at end of file +}