Fix issues with jemalloc; remove the needless path index from `Subpath`
This commit is contained in:
parent
d695a3d11f
commit
b546ffebcc
|
@ -3,6 +3,10 @@ name = "partitionfinder"
|
|||
version = "0.1.0"
|
||||
authors = ["Patrick Walton <pcwalton@mimiga.net>"]
|
||||
|
||||
[lib]
|
||||
name = "partitionfinder"
|
||||
crate-type = ["dylib", "rlib"]
|
||||
|
||||
[dependencies]
|
||||
bit-vec = "0.4"
|
||||
euclid = "0.15"
|
||||
|
|
|
@ -1,5 +1,9 @@
|
|||
// partitionfinder/lib.rs
|
||||
|
||||
#![feature(alloc_jemalloc)]
|
||||
|
||||
// Needed to work around a problem with `heapsize`
|
||||
extern crate alloc_jemalloc;
|
||||
extern crate bit_vec;
|
||||
extern crate euclid;
|
||||
|
||||
|
@ -43,5 +47,4 @@ pub struct ControlPoints {
|
|||
#[derive(Debug, Clone, Copy)]
|
||||
pub struct Subpath {
|
||||
pub first_endpoint_index: u32,
|
||||
pub path_index: u32,
|
||||
}
|
||||
|
|
|
@ -39,7 +39,7 @@ struct pf_control_points {
|
|||
typedef struct pf_control_points pf_control_points_t;
|
||||
|
||||
struct pf_subpath {
|
||||
uint32_t first_endpoint_index, path_index;
|
||||
uint32_t first_endpoint_index;
|
||||
};
|
||||
|
||||
typedef struct pf_subpath pf_subpath_t;
|
||||
|
|
Loading…
Reference in New Issue