# stage1: avoid incorrectly reading ZigValue data · gitcafe/zig

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

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

Visibility: public

Requested revision: b3225a755a78502245bc9c7d7419ebeb67201320

Requested commit: b3225a755a78502245bc9c7d7419ebeb67201320

Commit: b3225a755a78502245bc9c7d7419ebeb67201320

Tree: 7e1e2d770f57dd563caaebdc66a1edd1690fb515

Author: Andrew Kelley

Committer: Andrew Kelley

## Message

```
stage1: avoid incorrectly reading ZigValue data

Hashing, equality checking, and expanding lazy values were not
inspecting the is_comptime field of structs, causing incorrect behavior
for tuples. When looking at a comptime value of a struct, if the
is_comptime field is true, the value must be learned from the type
rather than the value.

```

## Parents

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

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