Skip to content

Commit 8e6faa5

Browse files
committed
fix problems that prevent implementing import shadowing protection
1 parent e286199 commit 8e6faa5

File tree

3 files changed

+3
-3
lines changed

3 files changed

+3
-3
lines changed

std/internal/digest/sha_SSSE3.d

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -228,7 +228,7 @@ version(USE_SSSE3)
228228
}
229229
if (i1 < seq1.length)
230230
{
231-
res ~= seq1[i1..std.algorithm.min(i1+dist,$)];
231+
res ~= seq1[i1..min(i1+dist,$)];
232232
i1 += dist;
233233
}
234234
}

std/process.d

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1451,7 +1451,7 @@ void kill(Pid pid, int codeOrSignal)
14511451
}
14521452
else version (Posix)
14531453
{
1454-
import core.sys.posix.signal;
1454+
import core.sys.posix.signal : kill;
14551455
if (kill(pid.osHandle, codeOrSignal) == -1)
14561456
throw ProcessException.newFromErrno();
14571457
}

std/zip.d

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -283,7 +283,7 @@ final class ZipArchive
283283
import std.bitmanip : littleEndianToNative, nativeToLittleEndian;
284284
import std.algorithm : max;
285285
import std.conv : to;
286-
import std.zlib : compress;
286+
static import std.zlib;
287287
import std.datetime : DosFileTime;
288288

289289
string comment; /// Read/Write: the archive comment. Must be less than 65536 bytes in length.

0 commit comments

Comments
 (0)