diff options
author | bors-servo <metajack+bors@gmail.com> | 2015-03-18 11:25:00 -0600 |
---|---|---|
committer | bors-servo <metajack+bors@gmail.com> | 2015-03-18 11:25:00 -0600 |
commit | 99cf9dbfc107bacb84dfe5afa9539a0ede3beac2 (patch) | |
tree | cc36210329cb1a31709a03685c05c4aaa99407e3 /components/util/geometry.rs | |
parent | 65d4b12bf20783ea784f1c61f4b33ec0fc975f4f (diff) | |
parent | 5f15eb5fbfb7a8649132cc8b3a07314389836714 (diff) | |
download | servo-99cf9dbfc107bacb84dfe5afa9539a0ede3beac2.tar.gz servo-99cf9dbfc107bacb84dfe5afa9539a0ede3beac2.zip |
auto merge of #5256 : servo/servo/rustup_20150311, r=jdm
...v.
Relies on:
* https://github.com/servo/rust-geom/pull/72
* https://github.com/servo/rust-glx/pull/10
* https://github.com/servo/gleam/pull/15
* https://github.com/servo/rust-mozjs/pull/137
* https://github.com/servo/rust-core-text/pull/35
* https://github.com/servo/rust-io-surface/pull/28
Diffstat (limited to 'components/util/geometry.rs')
-rw-r--r-- | components/util/geometry.rs | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/components/util/geometry.rs b/components/util/geometry.rs index f67859b4503..05b1469a1b1 100644 --- a/components/util/geometry.rs +++ b/components/util/geometry.rs @@ -132,7 +132,7 @@ impl Add for Au { fn add(self, other: Au) -> Au { let Au(s) = self; let Au(o) = other; - Au(s + o) + Au(s.wrapping_add(o)) } } @@ -143,7 +143,7 @@ impl Sub for Au { fn sub(self, other: Au) -> Au { let Au(s) = self; let Au(o) = other; - Au(s - o) + Au(s.wrapping_sub(o)) } } @@ -154,7 +154,7 @@ impl Mul<i32> for Au { #[inline] fn mul(self, other: i32) -> Au { let Au(s) = self; - Au(s * other) + Au(s.wrapping_mul(other)) } } |