Skip to content
This repository was archived by the owner on Oct 12, 2022. It is now read-only.
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 1 addition & 6 deletions src/core/thread/fiber.d
Original file line number Diff line number Diff line change
Expand Up @@ -603,14 +603,9 @@ class Fiber
*/
this( void delegate() dg, size_t sz = PAGESIZE * defaultStackPages,
size_t guardPageSize = PAGESIZE ) nothrow
in
{
assert( dg );
}
do
{
allocStack( sz, guardPageSize );
reset( dg );
reset( cast(void delegate() const) dg );
}


Expand Down
4 changes: 2 additions & 2 deletions src/core/thread/threadbase.d
Original file line number Diff line number Diff line change
Expand Up @@ -105,8 +105,8 @@ class ThreadBase
m_call = fn;
}

this(void delegate() dg, size_t sz = 0) @safe pure nothrow @nogc
in(dg)
this(void delegate() dg, size_t sz = 0) @trusted pure nothrow @nogc
in( cast(void delegate() const) dg)
{
this(sz);
m_call = dg;
Expand Down
2 changes: 1 addition & 1 deletion src/object.d
Original file line number Diff line number Diff line change
Expand Up @@ -1481,7 +1481,7 @@ class TypeInfo_Delegate : TypeInfo

override size_t getHash(scope const void* p) @trusted const
{
return hashOf(*cast(void delegate()*)p);
return hashOf(*cast(void delegate() const *)p);
}

override bool equals(in void* p1, in void* p2) const
Expand Down