Skip to content

Commit

Permalink
fix
Browse files Browse the repository at this point in the history
  • Loading branch information
QuantumExplorer committed Aug 20, 2024
1 parent a7e988b commit 3e4f6d5
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion merk/src/proofs/query/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -86,7 +86,7 @@ impl SubqueryBranch {
return None;
}
let subquery_path_depth = self.subquery_path.as_ref().map_or(Some(0), |path| {
if path.len() > 255 {
if path.len() > u16::MAX as usize {
None
} else {
Some(path.len() as u16)
Expand Down

0 comments on commit 3e4f6d5

Please sign in to comment.