Skip to content

Commit 43f729e

Browse files
pinvern8sh
authored andcommitted
Fix Issue 19311 - Add @nogc attribute to Socket receive methods
1 parent dd68d61 commit 43f729e

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

std/socket.d

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3034,7 +3034,7 @@ public:
30343034
* Returns: The number of bytes actually received, `0` if the remote side
30353035
* has closed the connection, or `Socket.ERROR` on failure.
30363036
*/
3037-
ptrdiff_t receive(void[] buf, SocketFlags flags) @trusted
3037+
ptrdiff_t receive(void[] buf, SocketFlags flags) @trusted @nogc
30383038
{
30393039
version (Windows) // Does not use size_t
30403040
{
@@ -3051,7 +3051,7 @@ public:
30513051
}
30523052

30533053
/// ditto
3054-
ptrdiff_t receive(void[] buf)
3054+
ptrdiff_t receive(void[] buf) @nogc
30553055
{
30563056
return receive(buf, SocketFlags.NONE);
30573057
}

0 commit comments

Comments
 (0)