Skip to content

Commit

Permalink
[Fix] Fix SocketSet.count return type.
Browse files Browse the repository at this point in the history
  • Loading branch information
denis-sh committed Aug 15, 2014
1 parent e690980 commit 7c04398
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions std/socket.d
Expand Up @@ -2108,10 +2108,10 @@ private:
set.length = FD_SET_OFFSET + size;
}

final ref fd_set_count_type count() @trusted @property inout pure nothrow @nogc
final ref inout(fd_set_count_type) count() @trusted @property inout pure nothrow @nogc
{
assert(set.length);
return *cast(fd_set_count_type*)set.ptr;
return *cast(inout(fd_set_count_type)*)set.ptr;
}

final size_t capacity() @property const pure nothrow @nogc
Expand Down

0 comments on commit 7c04398

Please sign in to comment.