Fix compile error on old compiler versions

This commit is contained in:
Sönke Ludwig 2019-09-17 15:22:41 +02:00 committed by GitHub
parent e7294bb9bd
commit db994eaa80
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -306,7 +306,7 @@ private T fromValue(T)(in JSONValue val)
static if (is(typeof(JSONType.true_)))
return val.type == JSONType.true_;
else
return val.type == JSONType.TRUE;
return val.type == JSON_TYPE.TRUE;
}
else static if (is(T : long)) return val.integer.to!T;
else static if (is(T : double)) return val.floating.to!T;