From 0ad8cdc587a0707e2235141be02255805d7e6886 Mon Sep 17 00:00:00 2001 From: otya128 Date: Tue, 23 Feb 2016 21:43:25 +0900 Subject: [PATCH] size_t --- SMILEBASIC/VM.d | 4 ++-- SMILEBASIC/compiler.d | 2 +- SMILEBASIC/petitcomputer.d | 2 +- 3 files changed, 4 insertions(+), 4 deletions(-) diff --git a/SMILEBASIC/VM.d b/SMILEBASIC/VM.d index d8988f3..110054c 100644 --- a/SMILEBASIC/VM.d +++ b/SMILEBASIC/VM.d @@ -65,7 +65,7 @@ class VM currentSlot = slots[slot]; this.slot = slot; } - void directSlot(int start, Code[] code, int len, VMVariable[wstring] globalTable, Function[wstring] functions, DataTable gdt/*GNU Debugging Tools*/, + void directSlot(int start, Code[] code, sizediff_t len, VMVariable[wstring] globalTable, Function[wstring] functions, DataTable gdt/*GNU Debugging Tools*/, int[wstring] globalLabel, DebugInfo dinfo) { this.pc = start; @@ -82,7 +82,7 @@ class VM c.global[v.index] = Value(v.type); } } - void loadSlot(int slot, Code[] code, int len, VMVariable[wstring] globalTable, Function[wstring] functions, DataTable gdt/*GNU Debugging Tools*/, + void loadSlot(int slot, Code[] code, sizediff_t len, VMVariable[wstring] globalTable, Function[wstring] functions, DataTable gdt/*GNU Debugging Tools*/, int[wstring] globalLabel, DebugInfo dinfo) { auto s = this.slots[slot]; diff --git a/SMILEBASIC/compiler.d b/SMILEBASIC/compiler.d index c68ce77..d13d2fc 100644 --- a/SMILEBASIC/compiler.d +++ b/SMILEBASIC/compiler.d @@ -221,7 +221,7 @@ class Compiler VMVariable[wstring] global; int[wstring] globalLabel; Function[wstring] functions; - int globalIndex = 0; + sizediff_t globalIndex = 0; void genCode(Code c) { code ~= c; diff --git a/SMILEBASIC/petitcomputer.d b/SMILEBASIC/petitcomputer.d index a81311b..bd5a59d 100644 --- a/SMILEBASIC/petitcomputer.d +++ b/SMILEBASIC/petitcomputer.d @@ -1503,7 +1503,7 @@ class PetitComputer if(SDL_HasClipboardText()) { char* cl = SDL_GetClipboardText(); - string an = cast(string)(cl[0..std.c.string.strlen(cl)]); + string an = cast(string)(cl[0..core.stdc.string.strlen(cl)]); ks = an.to!wstring; } }