@@ -366,7 +366,7 @@ public:
366
366
}
367
367
// / Returns the value of this BigInt as a long,
368
368
// / or +- long.max if outside the representable range.
369
- long toLong () pure const
369
+ long toLong () const
370
370
{
371
371
return (sign ? - 1 : 1 ) *
372
372
(data.ulongLength() == 1 && (data.peekUlong(0 ) <= cast (ulong )(long .max))
@@ -375,7 +375,7 @@ public:
375
375
}
376
376
// / Returns the value of this BigInt as an int,
377
377
// / or +- int.max if outside the representable range.
378
- long toInt () pure const
378
+ long toInt () const
379
379
{
380
380
return (sign ? - 1 : 1 ) *
381
381
(data.uintLength() == 1 && (data.peekUint(0 ) <= cast (uint )(int .max))
@@ -384,13 +384,13 @@ public:
384
384
}
385
385
// / Number of significant uints which are used in storing this number.
386
386
// / The absolute value of this BigInt is always < 2^^(32*uintLength)
387
- @property size_t uintLength() pure const
387
+ @property size_t uintLength() const
388
388
{
389
389
return data.uintLength();
390
390
}
391
391
// / Number of significant ulongs which are used in storing this number.
392
392
// / The absolute value of this BigInt is always < 2^^(64*ulongLength)
393
- @property size_t ulongLength() pure const
393
+ @property size_t ulongLength() const
394
394
{
395
395
return data.ulongLength();
396
396
}
@@ -440,16 +440,16 @@ private:
440
440
if (! data.isZero())
441
441
sign = ! sign;
442
442
}
443
- bool isZero () pure const
443
+ bool isZero () const
444
444
{
445
445
return data.isZero();
446
446
}
447
- bool isNegative () pure const
447
+ bool isNegative () const
448
448
{
449
449
return sign;
450
450
}
451
451
// Generate a runtime error if division by zero occurs
452
- void checkDivByZero () pure const
452
+ void checkDivByZero () const
453
453
{
454
454
assert (! isZero(), " BigInt division by zero" );
455
455
if (isZero())
0 commit comments