Fix UINT -> UNSIGNED_INT.

This commit is contained in:
Stephen Chung
2022-01-13 22:51:56 +08:00
parent 25f54c0ea5
commit 96764c0d2d
5 changed files with 15 additions and 10 deletions

View File

@@ -859,7 +859,8 @@ impl Engine {
(
start as u8,
// 2^bits - 1
(((2 as crate::UINT).pow((end - start) as u32) - 1) as crate::INT)
(((2 as crate::UNSIGNED_INT).pow((end - start) as u32) - 1)
as crate::INT)
<< start,
)
}
@@ -883,7 +884,8 @@ impl Engine {
(
start as u8,
// 2^bits - 1
(((2 as crate::UINT).pow((end - start + 1) as u32) - 1) as crate::INT)
(((2 as crate::UNSIGNED_INT).pow((end - start + 1) as u32) - 1)
as crate::INT)
<< start,
)
}