We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent e1358d8 commit e43d72bCopy full SHA for e43d72b
src/pcre/mod.rs
@@ -341,7 +341,7 @@ impl Pcre {
341
342
let mut i = 0u;
343
while i < name_count {
344
- let n: uint = (ptr::read_ptr(tabptr as *mut c_uchar) as uint << 8) | (ptr::read_ptr(ptr::offset(tabptr, 1) as *mut c_uchar) as uint);
+ let n: uint = (ptr::read_ptr(tabptr) as uint << 8) | (ptr::read_ptr(ptr::offset(tabptr, 1)) as uint);
345
let name_cstring = c_str::CString::new(ptr::offset(tabptr, 2) as *c_char, false);
346
let name: ~str = name_cstring.as_str().unwrap().to_owned();
347
// TODO Avoid the double lookup.
0 commit comments