Merge pull request #216 from ia0/usize_32_or_std
Make sure production store only builds with usize=u32
This commit is contained in:
@@ -376,6 +376,8 @@ pub use self::store::{
|
|||||||
/// with Rust, `usize` is used instead of `Nat` in code meant only for tests.
|
/// with Rust, `usize` is used instead of `Nat` in code meant only for tests.
|
||||||
///
|
///
|
||||||
/// Currently, the store only supports targets with `usize = u32`.
|
/// Currently, the store only supports targets with `usize = u32`.
|
||||||
|
// Make sure production builds have `usize = 32`.
|
||||||
|
#[cfg(any(target_pointer_width = "32", feature = "std"))]
|
||||||
type Nat = u32;
|
type Nat = u32;
|
||||||
|
|
||||||
/// Returns the internal representation of a Rust natural number.
|
/// Returns the internal representation of a Rust natural number.
|
||||||
|
|||||||
Reference in New Issue
Block a user