File tree Expand file tree Collapse file tree 2 files changed +7
-7
lines changed
Expand file tree Collapse file tree 2 files changed +7
-7
lines changed Original file line number Diff line number Diff line change @@ -31,6 +31,6 @@ script:
3131 # test code coverage
3232 - (cd dmd && make -f posix.mak)
3333 - (cd druntime && make -f posix.mak)
34- - (cd phobos && make -f posix.mak $(find std etc -name "*.d" | sed "s/[.]d$/.test/" | grep -vE '(std.encoding|net.curl)' ))
34+ - (cd phobos && make -f posix.mak $(find std etc -name "*.d" | sed "s/[.]d$/.test/" | grep -vE '(std.algorithm.sorting|std. encoding|net.curl)' ))
3535after_success :
3636 - (cd phobos && bash <(curl -s https://codecov.io/bash))
Original file line number Diff line number Diff line change @@ -1923,10 +1923,10 @@ result is greater than or equal to $(D max).
19231923ElementType! Range entropy (Range )(Range r) if (isInputRange! Range )
19241924{
19251925 Unqual! (typeof (return )) result = 0.0 ;
1926- foreach (e; r )
1926+ for (; ! r.empty; r.popFront )
19271927 {
1928- if (! e ) continue ;
1929- result -= e * log2(e );
1928+ if (! r.front ) continue ;
1929+ result -= r.front * log2(r.front );
19301930 }
19311931 return result;
19321932}
@@ -1937,10 +1937,10 @@ if (isInputRange!Range &&
19371937 ! is (CommonType! (ElementType! Range , F) == void ))
19381938{
19391939 Unqual! (typeof (return )) result = 0.0 ;
1940- foreach (e; r )
1940+ for (; ! r.empty; r.popFront )
19411941 {
1942- if (! e ) continue ;
1943- result -= e * log2(e );
1942+ if (! r.front ) continue ;
1943+ result -= r.front * log2(r.front );
19441944 if (result >= max) break ;
19451945 }
19461946 return result;
You can’t perform that action at this time.
0 commit comments