mirror of
https://github.com/dlang/phobos.git
synced 2025-05-01 07:30:33 +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
|
||||
{
|
||||
FloatingPointControl ctrl;
|
||||
if(FloatingPointControl.hasExceptionTraps())
|
||||
if(FloatingPointControl.hasExceptionTraps)
|
||||
ctrl.disableExceptions(FloatingPointControl.allExceptions);
|
||||
ctrl.rounding = FloatingPointControl.roundToNearest;
|
||||
|
||||
|
@ -3962,7 +3962,7 @@ unittest
|
|||
{
|
||||
assert(FloatingPointControl.rounding
|
||||
== FloatingPointControl.roundToNearest);
|
||||
if(FloatingPointControl.hasExceptionTraps())
|
||||
if(FloatingPointControl.hasExceptionTraps)
|
||||
assert(FloatingPointControl.enabledExceptions == 0);
|
||||
}
|
||||
|
||||
|
|
|
@ -1716,7 +1716,7 @@ public:
|
|||
auto subrange = range[start..end];
|
||||
foreach(i; start..end)
|
||||
{
|
||||
buf[i] = fun(subrange.front());
|
||||
buf[i] = fun(subrange.front);
|
||||
subrange.popFront();
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue