1
0

remove warnings

This commit is contained in:
otya128
2016-12-03 17:12:06 +09:00
parent 601b0305e9
commit 326ca3a25b
2 changed files with 4 additions and 3 deletions

View File

@@ -410,10 +410,10 @@ class BuiltinFunction
if (isInputRange!Source && isSomeChar!(ElementType!Source) && !is(Source == enum) && if (isInputRange!Source && isSomeChar!(ElementType!Source) && !is(Source == enum) &&
isFloatingPoint!Target && !is(Target == 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-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 ]; 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+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 ]; 1e+16L,1e+8L,1e+4L,1e+2L,1e+1L ];
// static immutable string infinity = "infinity"; // static immutable string infinity = "infinity";
@@ -2033,6 +2033,7 @@ class BuiltinFunction
} }
return def; return def;
} }
static this() static this()
{ {
foreach(name; __traits(derivedMembers, BuiltinFunction)) foreach(name; __traits(derivedMembers, BuiltinFunction))

View File

@@ -53,7 +53,7 @@ class Graphic
int y; /* 領域のY座標 */ int y; /* 領域のY座標 */
int oy; /* 親ラインのY座標 */ int oy; /* 親ラインのY座標 */
}; };
BufStr buff[MAXSIZE]; /* シード登録用バッファ */ BufStr[MAXSIZE] buff; /* シード登録用バッファ */
BufStr* sIdx, eIdx; /* buffの先頭・末尾ポインタ */ BufStr* sIdx, eIdx; /* buffの先頭・末尾ポインタ */
uint point(int x, int y) uint point(int x, int y)
{ {