Illegal comparator among Coord2d methods

The worst monsters in the Hearthlands warp the fabric of space and time...
User avatar
SiO2
Posts: 223
Joined: Sun Feb 17, 2013 10:46 pm

Illegal comparator among Coord2d methods

Post by SiO2 »

Image
It is not just duplicate return. for A(1,1) and B(0,1) it will result in:
A.compareTo(B) == -1
B.compareTo(A) == 0
Which may case sneaky bugs. I hope you have not used it for something important.
Bronies for life /)
Glorthan
Posts: 1099
Joined: Tue Jun 11, 2013 4:33 pm

Re: Illegal comparator among Coord2d methods

Post by Glorthan »

submit a PR?
User avatar
SiO2
Posts: 223
Joined: Sun Feb 17, 2013 10:46 pm

Re: Illegal comparator among Coord2d methods

Post by SiO2 »

Glorthan wrote:submit a PR?
I am sorry, a what?
Bronies for life /)
gravesmerch
Posts: 521
Joined: Thu Sep 08, 2022 6:13 pm

Re: Illegal comparator among Coord2d methods

Post by gravesmerch »

this may just fix some old bugs I gave up on, gotta give it a try
User avatar
noindyfikator
Posts: 1478
Joined: Fri Jul 15, 2011 11:10 am

Re: Illegal comparator among Coord2d methods

Post by noindyfikator »

SiO2 wrote:
Glorthan wrote:submit a PR?
I am sorry, a what?
Submit a pull request in haven repo
https://github.com/dolda2000/hafen-client

It's unlikely that they will merge it but worth a try

Return to “Bugs”