Skip to content

Commit

Permalink
Merge pull request #291 from Eclalang/inssue-#290-fix-and
Browse files Browse the repository at this point in the history
replaced the wrong condition
  • Loading branch information
tot0p authored Feb 27, 2024
2 parents 75d1bc7 + 2cce7e2 commit fe326ad
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion interpreter/eclaType/char.go
Original file line number Diff line number Diff line change
Expand Up @@ -290,7 +290,7 @@ func (c Char) And(other Type) (Type, error) {
return Bool(true), nil
}
case Bool:
if c == Char(0) && other.GetValue() == Bool(false) {
if c == Char(0) || other.GetValue() == Bool(false) {
return Bool(false), nil
} else {
return Bool(true), nil
Expand Down

0 comments on commit fe326ad

Please sign in to comment.