Commit 0398d199 authored by John Jekel's avatar John Jekel
Browse files

Fix C defines to be mapped to signed integers

This fixes having to use "as i32" all over the place because Bindgen
erroneously thought that the defines should be interpreted as unsigned.
parent 68438c40
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
[package]
name = "sv-bindings"
version = "0.1.1"
version = "0.1.2"
description = "Raw FFI bindings for the (System)Verilog DPI, PLI, and VPI interfaces (IEEE 1800)."
authors = ["John Zacarias Jekel <john@jekel.ca>"]
readme = "README.md"
+1 −0
Original line number Diff line number Diff line
@@ -93,6 +93,7 @@ fn setup_bindings(c_header: &str, rust_output: &str) {
    let bindings = bindgen::Builder::default()
        .header(c_header)
        .parse_callbacks(Box::new(bindgen::CargoCallbacks::new()))
        .default_macro_constant_type(bindgen::MacroTypeVariation::Signed)
        .generate()
        .expect("Unable to generate bindings");