Fixed equality issue with int

This commit is contained in:
2022-08-11 03:58:45 -05:00
parent bef5b0328e
commit 4d73fa4b83
2 changed files with 8 additions and 5 deletions

View File

@@ -78,7 +78,7 @@ func (token Token) Value () (value any) {
// Equals returns whether this token is equal to another token
func (token Token) Equals (testToken Token) (match bool) {
return token.value == testToken.value
return token == testToken
}
// Location returns the location of the token in its file.