Skip to content

Commit

Permalink
Fix is_true() / is_false() in Zval (#116)
Browse files Browse the repository at this point in the history
Looks like a copy/pasta
  • Loading branch information
joehoyle authored Dec 14, 2021
1 parent 705be68 commit 910400a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/types/zval.rs
Original file line number Diff line number Diff line change
Expand Up @@ -259,7 +259,7 @@ impl Zval {

/// Returns true if the zval is true, false otherwise.
pub fn is_true(&self) -> bool {
self.get_type() == DataType::False
self.get_type() == DataType::True
}

/// Returns true if the zval is false, false otherwise.
Expand Down

0 comments on commit 910400a

Please sign in to comment.