mirror of
https://github.com/servo/servo.git
synced 2025-07-23 07:13:52 +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>());
|
||||
Uint8ClampedArray::create(
|
||||
*cx,
|
||||
CreateWith::Length(len.try_into().unwrap()),
|
||||
CreateWith::Length(len as usize),
|
||||
array.handle_mut(),
|
||||
)
|
||||
.unwrap();
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue