diff --git a/src/number.rs b/src/number.rs index 88a56e8..776e432 100644 --- a/src/number.rs +++ b/src/number.rs @@ -19,7 +19,7 @@ pub trait Number : Zero + One + Add + Sub + /// The amount of Bytes required to represent this Number. - const BYTES: u8; + const BYTES: usize; /// Create a number from a given string and base radix. @@ -757,7 +757,7 @@ macro_rules! int_number_trait_impl type StrRadixError = ::std::num::ParseIntError; - const BYTES: u8 = <$varType>::BYTES; + const BYTES: usize = <$varType>::BYTES; fn from_str_radix(src: &str, radix: u32) -> @@ -780,7 +780,7 @@ macro_rules! float_number_trait_impl type StrRadixError = ::std::num::ParseFloatError; - const BYTES: u8 = $numBytes; + const BYTES: usize = $numBytes; fn from_str_radix(src: &str, radix: u32) ->