Compare commits

...

1 Commits

Author SHA1 Message Date
92660ef7de AttrLayout no longer attempts to compare itself 2024-07-25 18:09:10 -04:00

View File

@@ -250,11 +250,10 @@ func (this AttrOverflow) Equals (other Attr) bool {
}
// Equals returns true if both attributes can reasonably be declared equal.
func (this AttrLayout) Equals (other Attr) bool {
if other, ok := other.(AttrLayout); ok {
return this == other
} else {
return false
}
// for some goofy reason if we try to compare two AttrLayouts we get a
// fucking runtime error????? its probably for the best anyways because
// two layouts cannot "reasonably" be declared equal
return false
}
// AttrNumber returns the number of an attribute. Each attribute type has a