PuzzleD

D Interface to libpuzzle
git clone git://xatko.vsos.ethz.ch/PuzzleD.git
Log | Files | Refs

commit d53a6a17ee1c271f6c492e4bb7a49f91732aff07
parent 8c5acd2ade7a84ff6f2ec18494bb052f23bc36a3
Author: Dominik Schmidt <das1993@hotmail.com>
Date:   Thu, 27 Aug 2015 12:32:22 +0200

Make lenght-functions @safe @nogc

Diffstat:
puzzle.d | 6+++---
1 file changed, 3 insertions(+), 3 deletions(-)

diff --git a/puzzle.d b/puzzle.d @@ -153,7 +153,7 @@ struct DVec{ puzzle_fill_cvec_from_dvec(ctx,&cvec.vec,&vec); return cvec; } - @property size_t length(){ + @safe @nogc @property size_t length(){ return vec.sizeof_vec; } } @@ -202,7 +202,7 @@ struct CVec{ CVec_Compressed compress(){ return CVec_Compressed(this); } - @property size_t length(){ + @nogc @safe @property size_t length(){ return vec.sizeof_vec; } } @@ -240,7 +240,7 @@ struct CVec_Compressed{ CVec uncompress(){ return CVec(this); } - @property size_t length(){ + @safe @nogc @property size_t length(){ return vec.sizeof_compressed_vec; } }