mirror of
https://github.com/servo/servo.git
synced 2025-08-01 19:50:30 +01:00
Update imagedata.rs
This commit is contained in:
parent
b3126eaa3f
commit
61d7775673
1 changed files with 1 additions and 1 deletions
|
@ -116,7 +116,7 @@ impl ImageData {
|
||||||
rooted!(in (*cx) let mut array = ptr::null_mut::<JSObject>());
|
rooted!(in (*cx) let mut array = ptr::null_mut::<JSObject>());
|
||||||
Uint8ClampedArray::create(
|
Uint8ClampedArray::create(
|
||||||
*cx,
|
*cx,
|
||||||
CreateWith::Length(len.try_into().unwrap()),
|
CreateWith::Length(len as usize),
|
||||||
array.handle_mut(),
|
array.handle_mut(),
|
||||||
)
|
)
|
||||||
.unwrap();
|
.unwrap();
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue