Skip to content

Commit 275f394

Browse files
authored
Merge pull request #7094 from RazvanN7/Fix_for_19399
Fix enum type in std.socket to match the receiver type merged-on-behalf-of: Nicholas Wilson <[email protected]>
2 parents 075b0ed + 2669a2b commit 275f394

File tree

3 files changed

+3
-3
lines changed

3 files changed

+3
-3
lines changed

std/experimental/allocator/building_blocks/stats_collector.d

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -729,7 +729,7 @@ public:
729729
private void addPerCall(string f, uint n, names...)(ulong[] values...)
730730
{
731731
import std.array : join;
732-
enum uint mask = mixin("Options."~[names].join("|Options."));
732+
enum ulong mask = mixin("Options."~[names].join("|Options."));
733733
static if (perCallFlags & mask)
734734
{
735735
// Per allocation info

std/parallelism.d

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -480,7 +480,7 @@ struct Task(alias fun, Args...)
480480
static if (isFunctionPointer!(_args[0]))
481481
{
482482
private enum bool isPure =
483-
functionAttributes!(Args[0]) & FunctionAttribute.pure_;
483+
(functionAttributes!(Args[0]) & FunctionAttribute.pure_) != 0;
484484
}
485485
else
486486
{

std/socket.d

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -325,7 +325,7 @@ shared static ~this() @system nothrow @nogc
325325
/**
326326
* The communication domain used to resolve an address.
327327
*/
328-
enum AddressFamily: int
328+
enum AddressFamily: ushort
329329
{
330330
UNSPEC = AF_UNSPEC, /// Unspecified address family
331331
UNIX = AF_UNIX, /// Local communication

0 commit comments

Comments
 (0)