Fixed typos
This commit is contained in:
parent
eab9f010f9
commit
d5ed4a8ffd
@ -381,7 +381,7 @@ impl<'a> From<&'a U256> for H256 {
|
|||||||
value.to_bytes(&mut ret);
|
value.to_bytes(&mut ret);
|
||||||
ret
|
ret
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
impl From<H256> for Address {
|
impl From<H256> for Address {
|
||||||
|
@ -71,7 +71,7 @@ macro_rules! construct_uint {
|
|||||||
pub fn as_u32(&self) -> u32 {
|
pub fn as_u32(&self) -> u32 {
|
||||||
let &$name(ref arr) = self;
|
let &$name(ref arr) = self;
|
||||||
if (arr[0] & (0xffffffffu64 << 32)) != 0 {
|
if (arr[0] & (0xffffffffu64 << 32)) != 0 {
|
||||||
panic!("Intger overflow when casting U256")
|
panic!("Integer overflow when casting U256")
|
||||||
}
|
}
|
||||||
self.as_u64() as u32
|
self.as_u64() as u32
|
||||||
}
|
}
|
||||||
@ -82,7 +82,7 @@ macro_rules! construct_uint {
|
|||||||
let &$name(ref arr) = self;
|
let &$name(ref arr) = self;
|
||||||
for i in 1..$n_words {
|
for i in 1..$n_words {
|
||||||
if arr[i] != 0 {
|
if arr[i] != 0 {
|
||||||
panic!("Intger overflow when casting U256")
|
panic!("Integer overflow when casting U256")
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
arr[0]
|
arr[0]
|
||||||
|
Loading…
Reference in New Issue
Block a user