mirror of
https://github.com/AleoHQ/leo.git
synced 2025-01-03 15:28:05 +03:00
Update compiler/src/value/integer/integer.rs
Co-authored-by: Collin Chin <16715212+collinc97@users.noreply.github.com>
This commit is contained in:
parent
48bbdd6a73
commit
61c20f2706
@ -87,7 +87,7 @@ impl Integer {
|
||||
}
|
||||
|
||||
pub fn is_allocated(&self) -> bool {
|
||||
self.get_bits().into_iter().any(|b| !matches!(b, Boolean::Constant(_)))
|
||||
self.get_bits().into_iter().any(|b| matches!(b, Boolean::Is(_) | Boolean::Not(_)))
|
||||
}
|
||||
|
||||
pub fn get_value(&self) -> Option<String> {
|
||||
|
Loading…
Reference in New Issue
Block a user