Index: sdk/lib/typed_data/dart2js/typed_data_dart2js.dart |
diff --git a/sdk/lib/typed_data/dart2js/typed_data_dart2js.dart b/sdk/lib/typed_data/dart2js/typed_data_dart2js.dart |
index c6d34c3f8d0ff8061277e358d3aca4175454916b..4b7ea7b8004adee6498c6b2f321dd49e3ce49db2 100644 |
--- a/sdk/lib/typed_data/dart2js/typed_data_dart2js.dart |
+++ b/sdk/lib/typed_data/dart2js/typed_data_dart2js.dart |
@@ -969,14 +969,15 @@ class Float32x4 { |
double _y = _storage[1]; |
double _z = _storage[2]; |
double _w = _storage[3]; |
- _x = _x < _lx ? _lx : _x; |
+ // MAX(MIN(self, upper), lower). |
_x = _x > _ux ? _ux : _x; |
- _y = _y < _ly ? _ly : _y; |
_y = _y > _uy ? _uy : _y; |
- _z = _z < _lz ? _lz : _z; |
_z = _z > _uz ? _uz : _z; |
- _w = _w < _lw ? _lw : _w; |
_w = _w > _uw ? _uw : _w; |
+ _x = _x < _lx ? _lx : _x; |
+ _y = _y < _ly ? _ly : _y; |
+ _z = _z < _lz ? _lz : _z; |
+ _w = _w < _lw ? _lw : _w; |
return new Float32x4(_x, _y, _z, _w); |
} |