# cbe: aggregate assignment does not need a second cast · gitcafe/zig

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

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

Visibility: public

Requested revision: 81277b5487e53d3e96351c2f1b14f437321210cc

Requested commit: 81277b5487e53d3e96351c2f1b14f437321210cc

Commit: 81277b5487e53d3e96351c2f1b14f437321210cc

Tree: 7fe112523d8ea814264814c5fdd1350f483e50d3

Author: mlugg

Committer: mlugg

## Message

```
cbe: aggregate assignment does not need a second cast

`writeCValue` already emits a cast; including another here is, in fact,
invalid, and emits errors under MSVC. Probably this code was originally
added to work around the incorrect `.Initializer` location which was
fixed in the previous commit.

```

## Parents

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

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