# src/translate_c.cpp: correctly bridge llvm::APSInt with Zig BigInt; · gitcafe/zig

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

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

Visibility: public

Requested revision: b023db2e822baa5b54e15e0dbc1c5e35c8931cb6

Requested commit: b023db2e822baa5b54e15e0dbc1c5e35c8931cb6

Commit: b023db2e822baa5b54e15e0dbc1c5e35c8931cb6

Tree: 7e6b8713a6e3db7b2e979244df114f600c9ccc37

Author: kristopher tate

Committer: Andrew Kelley

## Message

```
src/translate_c.cpp: correctly bridge llvm::APSInt with Zig BigInt;

ACHTUNG: llvm::APSInt stores an int's sign inside of its getRawData; Internally to Zig we store an integer's sign outside of getRawData! (~aps_int) calls .flip() internally on the raw data to match Zig.

test/translate_c.zig: enum: add wider range of values (u64) to try;

```

## Parents

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

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