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
ff324d5957
commit
2a312adc41
1 changed files with 4 additions and 6 deletions
|
|
@ -549,12 +549,10 @@ impl TryFrom<&RawSendPropDefinition> for SendPropParseDefinition {
|
|||
)?,
|
||||
}),
|
||||
SendPropType::Array => {
|
||||
let count_bit_count = log_base2(
|
||||
definition
|
||||
.element_count
|
||||
.ok_or(MalformedSendPropDefinitionError::UnsizedArray)?,
|
||||
) as u16
|
||||
+ 1;
|
||||
let element_count = definition
|
||||
.element_count
|
||||
.ok_or(MalformedSendPropDefinitionError::UnsizedArray)?;
|
||||
let count_bit_count = log_base2(element_count) as u16 + 1;
|
||||
let child_definition = definition
|
||||
.array_property
|
||||
.as_deref()
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue