mirror of
https://github.com/servo/servo.git
synced 2025-08-15 10:25:32 +01:00
Stop using int/uint in CEF.
This commit is contained in:
parent
1e45d025b3
commit
de94e39ff7
59 changed files with 131 additions and 131 deletions
|
@ -47,8 +47,8 @@ pub extern "C" fn cef_string_list_value(lt: *mut cef_string_list_t, index: c_int
|
|||
unsafe {
|
||||
if index < 0 || lt.is_null() { return 0; }
|
||||
let v = string_list_to_vec(lt);
|
||||
if index as uint > (*v).len() - 1 { return 0; }
|
||||
let cs = (*v)[index as uint];
|
||||
if index as usize > (*v).len() - 1 { return 0; }
|
||||
let cs = (*v)[index as usize];
|
||||
cef_string_utf16_set(mem::transmute((*cs).str), (*cs).length, value, 1)
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue