# Sema: replace uses of \`toUnsignedInt\` with \`toUnsignedIntAdvanced\` · gitcafe/zig

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

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

Visibility: public

Requested revision: 2e7d28dd0d27d94945ac5f131d7f7b4e03bc0024

Requested commit: 2e7d28dd0d27d94945ac5f131d7f7b4e03bc0024

Commit: 2e7d28dd0d27d94945ac5f131d7f7b4e03bc0024

Tree: c931e6021a9cd6c1ba1423235476f5d420073d99

Author: Veikka Tuominen

Committer: Andrew Kelley

## Message

```
Sema: replace uses of `toUnsignedInt` with `toUnsignedIntAdvanced`

During semantic analysis the value may be an unresolved lazy value
which makes using `toUnsignedInt` invalid.

Add assertions to detect similar issues in the future.

Closes #18624

```

## Parents

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

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