mirror of
https://codeberg.org/demostf/parser.git
synced 2026-06-03 18:24:05 +02:00
minor prop bit count cleanup
This commit is contained in:
parent
05d5a17861
commit
5e771e57c2
1 changed files with 4 additions and 6 deletions
|
|
@ -549,12 +549,10 @@ impl TryFrom<&RawSendPropDefinition> for SendPropParseDefinition {
|
||||||
)?,
|
)?,
|
||||||
}),
|
}),
|
||||||
SendPropType::Array => {
|
SendPropType::Array => {
|
||||||
let count_bit_count = log_base2(
|
let element_count = definition
|
||||||
definition
|
.element_count
|
||||||
.element_count
|
.ok_or(MalformedSendPropDefinitionError::UnsizedArray)?;
|
||||||
.ok_or(MalformedSendPropDefinitionError::UnsizedArray)?,
|
let count_bit_count = log_base2(element_count) as u16 + 1;
|
||||||
) as u16
|
|
||||||
+ 1;
|
|
||||||
let child_definition = definition
|
let child_definition = definition
|
||||||
.array_property
|
.array_property
|
||||||
.as_deref()
|
.as_deref()
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue