fix opEquals type

This commit is contained in:
Walter Bright 2009-11-22 08:38:36 +00:00
parent 78d04c9566
commit 1b0d9811c3
3 changed files with 12 additions and 7 deletions

View file

@ -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)