mirror of
https://github.com/servo/servo.git
synced 2025-08-06 22:15:33 +01:00
Stop using int/uint in script.
This commit is contained in:
parent
74f8c0eeb7
commit
c2e81be8a5
12 changed files with 23 additions and 24 deletions
|
@ -63,7 +63,7 @@ impl<'a> ImageDataHelpers for JSRef<'a, ImageData> {
|
|||
let cx = global.get_cx();
|
||||
let data: *const uint8_t = JS_GetUint8ClampedArrayData(self.Data(cx), cx) as *const uint8_t;
|
||||
let len = self.Width() * self.Height() * 4;
|
||||
slice::from_raw_parts(data, len as uint).to_vec()
|
||||
slice::from_raw_parts(data, len as usize).to_vec()
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue