Fix issues with jemalloc; remove the needless path index from `Subpath`

This commit is contained in:
Patrick Walton 2017-07-02 16:41:33 -04:00
parent d695a3d11f
commit b546ffebcc
3 changed files with 9 additions and 2 deletions

View File

@ -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"

View File

@ -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,
}

View File

@ -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;