Cache floats based on their bits, not their value
We were using a C 'double' as the hashmap key, which meant that 0.0 and -0.0 would end up caching to the same thing. Instead, extract the bits of the double, and use that as the cache key instead. Should fix #724
Showing
Please register or sign in to comment