Hacker News
new
|
past
|
comments
|
ask
|
show
|
jobs
|
submit
login
pvg
on July 9, 2019
|
parent
|
context
|
favorite
| on:
John Gustafson’s crusade to replace floating point...
Nothing in between the assignment and the check changed the value of x or y
What was the check for?
martinpw
on July 9, 2019
[–]
There was code in between that could have changed the value, but it was never triggered in the bug case.
pvg
on July 9, 2019
|
parent
[–]
Ah yeah, that makes sense. Relying on FP equality should always make one's eye twitch a little but this is a neat way of hiding it.
Guidelines
|
FAQ
|
Lists
|
API
|
Security
|
Legal
|
Apply to YC
|
Contact
Search:
What was the check for?