Replace an undefined double->float cast with infinity.
This was caught by UBSan. The given double would overflow the underlying float, which is undefined. Instead test with an explicit float::infinity.
Loading
Please register or sign in to comment