aboutsummaryrefslogtreecommitdiff
path: root/src/params.rs
diff options
context:
space:
mode:
Diffstat (limited to 'src/params.rs')
-rw-r--r--src/params.rs1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/params.rs b/src/params.rs
index ca6ba48..608c040 100644
--- a/src/params.rs
+++ b/src/params.rs
@@ -68,6 +68,7 @@ impl Params {
/// Add an additional subparameter to the current parameter.
#[inline]
pub(crate) fn extend(&mut self, item: u16) {
+ self.subparams[self.len - self.current_subparams as usize] = self.current_subparams + 1;
self.params[self.len] = item;
self.current_subparams += 1;
self.len += 1;