commit 50257af667f359b2a3a20fa368731f67821d3ce4
parent aa141cae3d35321dbf59e0ff4757a40bad29ed2b
Author: Dominik Schmidt <dominik@schm1dt.ch>
Date: Sun, 21 Jun 2020 12:31:06 +0200
Adapt to D-Style array syntax
Diffstat:
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/src/puzzle.d b/src/puzzle.d
@@ -223,7 +223,7 @@ struct DVec{
* Throws:
* PuzzleException if the memory couldn't be read.
*/
- void load(void mem[]){
+ void load(void[] mem){
if(puzzle_fill_dvec_from_mem(ctx, &vec, cast(void*)mem, mem.length)!=0){
throw new PuzzleException("Couldn't read from memory");
}
@@ -324,7 +324,7 @@ struct CVec{
* Throws:
* PuzzleException if the memory couldn't be read.
*/
- void load(void mem[]){
+ void load(void[] mem){
if(puzzle_fill_cvec_from_mem(ctx, &vec, cast(void*)mem, mem.length)!=0){
throw new PuzzleException("Couldn't read from memory");
}