mirror of
https://github.com/servo/servo.git
synced 2025-08-01 19:50:30 +01:00
Update Rust nightly to 1.19.0-nightly (6165203c4 2017-06-03)
This commit is contained in:
parent
985050d364
commit
f081380dc0
6 changed files with 9 additions and 16 deletions
|
@ -99,7 +99,7 @@ fn is_image_opaque(format: webrender_traits::ImageFormat, bytes: &[u8]) -> bool
|
|||
fn premultiply(data: &mut [u8]) {
|
||||
let length = data.len();
|
||||
|
||||
for i in (0..length).step_by(4) {
|
||||
for i in Iterator::step_by(0..length, 4) {
|
||||
let b = data[i + 0] as u32;
|
||||
let g = data[i + 1] as u32;
|
||||
let r = data[i + 2] as u32;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue