The rest of the errors are just bad code. They’re using INFINITY define with a float which will overflow by definition. It even says it in the comments that it must overflow.
Did nobody even try to compile this?
I replaced all the uses of INFINITY with
std::numeric_limits<float>::infinity()
Not sure if it’ll still work, but I doubt I’ll be using that plugin.