fix property enforcement

This commit is contained in:
k-hara 2014-04-03 13:10:52 +09:00
parent f470f33eb7
commit 384a1da82f
2 changed files with 3 additions and 3 deletions

View file

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

View file

@ -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();
} }
} }