From 326ca3a25be9fb2ac00abe766fa9af5ae93e6ac7 Mon Sep 17 00:00:00 2001 From: otya128 Date: Sat, 3 Dec 2016 17:12:06 +0900 Subject: [PATCH] remove warnings --- SMILEBASIC/builtinfunctions.d | 5 +++-- SMILEBASIC/graphic.d | 2 +- 2 files changed, 4 insertions(+), 3 deletions(-) diff --git a/SMILEBASIC/builtinfunctions.d b/SMILEBASIC/builtinfunctions.d index 61676f5..71823e7 100644 --- a/SMILEBASIC/builtinfunctions.d +++ b/SMILEBASIC/builtinfunctions.d @@ -410,10 +410,10 @@ class BuiltinFunction if (isInputRange!Source && isSomeChar!(ElementType!Source) && !is(Source == enum) && isFloatingPoint!Target && !is(Target == enum)) { - static immutable real negtab[14] = + static immutable real[14] negtab = [ 1e-4096L,1e-2048L,1e-1024L,1e-512L,1e-256L,1e-128L,1e-64L,1e-32L, 1e-16L,1e-8L,1e-4L,1e-2L,1e-1L,1.0L ]; - static immutable real postab[13] = + static immutable real[13] postab = [ 1e+4096L,1e+2048L,1e+1024L,1e+512L,1e+256L,1e+128L,1e+64L,1e+32L, 1e+16L,1e+8L,1e+4L,1e+2L,1e+1L ]; // static immutable string infinity = "infinity"; @@ -2033,6 +2033,7 @@ class BuiltinFunction } return def; } + static this() { foreach(name; __traits(derivedMembers, BuiltinFunction)) diff --git a/SMILEBASIC/graphic.d b/SMILEBASIC/graphic.d index e88e17a..b123386 100644 --- a/SMILEBASIC/graphic.d +++ b/SMILEBASIC/graphic.d @@ -53,7 +53,7 @@ class Graphic int y; /* 領域のY座標 */ int oy; /* 親ラインのY座標 */ }; - BufStr buff[MAXSIZE]; /* シード登録用バッファ */ + BufStr[MAXSIZE] buff; /* シード登録用バッファ */ BufStr* sIdx, eIdx; /* buffの先頭・末尾ポインタ */ uint point(int x, int y) {