Skip to content

Commit

Permalink
fix: fix wrong range in push_index_if_explain marco
Browse files Browse the repository at this point in the history
  • Loading branch information
liulifox233 committed Feb 4, 2025
1 parent b43e2c9 commit c3de2db
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/macros.rs
Original file line number Diff line number Diff line change
Expand Up @@ -80,7 +80,7 @@ macro_rules! register_g_function {
macro_rules! push_index_if_explain {
($this:ident) => {{
#[cfg(feature = "explain")]
if $this.cap > 1 {
if $this.cap > 0 {
$this.expl.push($this.idx);
}
}};
Expand Down

0 comments on commit c3de2db

Please sign in to comment.