From a8b66efc34a7db765f27a447926954c3008bc828 Mon Sep 17 00:00:00 2001 From: "Crom (Thibaut CHARLES)" Date: Sun, 27 Nov 2022 20:22:16 +0100 Subject: [PATCH] Upgraded dependencies & fixed deprecations --- dub.sdl | 2 +- dub.selections.json | 5 +++-- source/nwn/gff.d | 2 +- source/nwnlibd/orderedjson.d | 4 ++-- 4 files changed, 7 insertions(+), 6 deletions(-) diff --git a/dub.sdl b/dub.sdl index 692e4e08..86f297e7 100644 --- a/dub.sdl +++ b/dub.sdl @@ -7,7 +7,7 @@ authors "Thibaut CHARLES (CromFr)" targetType "library" targetName "nwn-d" stringImportPaths "unittest" -dependency "gfm:math" version="~>7.0.0" +dependency "gfm:math" version="~>8.0.6" preBuildCommands `echo "/// nwn-lib-d version module nwn.ver; diff --git a/dub.selections.json b/dub.selections.json index 4b3656f5..1fe5deed 100644 --- a/dub.selections.json +++ b/dub.selections.json @@ -1,7 +1,8 @@ { "fileVersion": 1, "versions": { - "gfm": "7.0.8", - "gl3n": "1.3.1" + "gfm": "8.0.6", + "gl3n": "1.3.1", + "intel-intrinsics": "1.10.10" } } diff --git a/source/nwn/gff.d b/source/nwn/gff.d index 97c6016a..ed3a1803 100644 --- a/source/nwn/gff.d +++ b/source/nwn/gff.d @@ -414,7 +414,7 @@ struct GffStruct { @property{ /// GffStruct children associative array - ref inout(ChildrenAA) children() inout { + ref inout(ChildrenAA) children() inout return { return *cast(inout(ChildrenAA)*)(&m_children); } /// ditto diff --git a/source/nwnlibd/orderedjson.d b/source/nwnlibd/orderedjson.d index f58b03dc..97f7717c 100644 --- a/source/nwnlibd/orderedjson.d +++ b/source/nwnlibd/orderedjson.d @@ -281,7 +281,7 @@ struct JSONValue (*a)["hello"] = "world"; // segmentation fault --- */ - @property ref inout(JSONValue[string]) object() inout pure @system + @property ref inout(JSONValue[string]) object() inout pure @system return { enforce!JSONException(type == JSONType.object, "JSONValue is not an object"); @@ -327,7 +327,7 @@ struct JSONValue (*a)[0] = "world"; // segmentation fault --- */ - @property ref inout(JSONValue[]) array() inout pure @system + @property ref inout(JSONValue[]) array() inout pure @system return { enforce!JSONException(type == JSONType.array, "JSONValue is not an array");