mirror of
https://github.com/dlang/phobos.git
synced 2025-04-28 06:00:35 +03:00
fix opEquals type
This commit is contained in:
parent
78d04c9566
commit
1b0d9811c3
3 changed files with 12 additions and 7 deletions
|
@ -297,12 +297,12 @@ struct BitArray
|
|||
size_t len;
|
||||
uint* ptr;
|
||||
|
||||
size_t dim()
|
||||
const size_t dim()
|
||||
{
|
||||
return (len + 31) / 32;
|
||||
}
|
||||
|
||||
size_t length()
|
||||
const size_t length()
|
||||
{
|
||||
return len;
|
||||
}
|
||||
|
@ -578,7 +578,7 @@ struct BitArray
|
|||
* Support for operators == and != for bit arrays.
|
||||
*/
|
||||
|
||||
bool opEquals(BitArray a2)
|
||||
const bool opEquals(const ref BitArray a2)
|
||||
{ int i;
|
||||
|
||||
if (this.length != a2.length)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue