mirror of
https://github.com/dlang/phobos.git
synced 2025-04-29 14:40:30 +03:00
fix property enforcement
This commit is contained in:
parent
f470f33eb7
commit
384a1da82f
2 changed files with 3 additions and 3 deletions
|
@ -1842,7 +1842,7 @@ unittest
|
||||||
unittest
|
unittest
|
||||||
{
|
{
|
||||||
FloatingPointControl ctrl;
|
FloatingPointControl ctrl;
|
||||||
if(FloatingPointControl.hasExceptionTraps())
|
if(FloatingPointControl.hasExceptionTraps)
|
||||||
ctrl.disableExceptions(FloatingPointControl.allExceptions);
|
ctrl.disableExceptions(FloatingPointControl.allExceptions);
|
||||||
ctrl.rounding = FloatingPointControl.roundToNearest;
|
ctrl.rounding = FloatingPointControl.roundToNearest;
|
||||||
|
|
||||||
|
@ -3962,7 +3962,7 @@ unittest
|
||||||
{
|
{
|
||||||
assert(FloatingPointControl.rounding
|
assert(FloatingPointControl.rounding
|
||||||
== FloatingPointControl.roundToNearest);
|
== FloatingPointControl.roundToNearest);
|
||||||
if(FloatingPointControl.hasExceptionTraps())
|
if(FloatingPointControl.hasExceptionTraps)
|
||||||
assert(FloatingPointControl.enabledExceptions == 0);
|
assert(FloatingPointControl.enabledExceptions == 0);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -1716,7 +1716,7 @@ public:
|
||||||
auto subrange = range[start..end];
|
auto subrange = range[start..end];
|
||||||
foreach(i; start..end)
|
foreach(i; start..end)
|
||||||
{
|
{
|
||||||
buf[i] = fun(subrange.front());
|
buf[i] = fun(subrange.front);
|
||||||
subrange.popFront();
|
subrange.popFront();
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue