# fix NaN comparing equal to itself · gitcafe/zig

[View on GitCafe](https://git.cafe/gitcafe/zig/commit/1dc6751721a2fe9990ea8fab4eadc95a29f53304)

Repository: [gitcafe/zig](https://git.cafe/gitcafe/zig)

Visibility: public

Requested revision: 1dc6751721a2fe9990ea8fab4eadc95a29f53304

Requested commit: 1dc6751721a2fe9990ea8fab4eadc95a29f53304

Commit: 1dc6751721a2fe9990ea8fab4eadc95a29f53304

Tree: fb85f1874651709f419567327241e94748d63bb8

Author: Andrew Kelley

Committer: Andrew Kelley

## Message

```
fix NaN comparing equal to itself

This was broken both in comptime code and in runtime code.

closes #1174

```

## Parents

- [8e6ff8d615820f7f732724a5db1639ae5f12fb4e](https://git.cafe/gitcafe/zig/commit/8e6ff8d615820f7f732724a5db1639ae5f12fb4e?format=markdown)

[Source at this commit](https://git.cafe/gitcafe/zig/tree/1dc6751721a2fe9990ea8fab4eadc95a29f53304?format=markdown)
