diff options
| author | Michael Noronha <michaeltnoronha@gmail.com> | 2018-08-20 11:29:26 -0700 |
|---|---|---|
| committer | Andrew Kelley <superjoe30@gmail.com> | 2018-08-20 14:29:26 -0400 |
| commit | b8ce8f219c48ae833199130ce575241f848d690b (patch) | |
| tree | d8e17d413ef63a156daafcc679ba4cd62913469f /std/math/complex | |
| parent | 3ee1b60edf8ee53ac7850aaee13c43f2db3a8661 (diff) | |
| download | zig-b8ce8f219c48ae833199130ce575241f848d690b.tar.gz zig-b8ce8f219c48ae833199130ce575241f848d690b.zip | |
translate-c: Correctly translate enum init values, addressing #1360 (#1377)
* translate-c: Correctly translate enum init values
* translate-c: Test enum initialization
* translate-c: Flip to positive using APSInt builtins
* 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;
closes #1360
Diffstat (limited to 'std/math/complex')
0 files changed, 0 insertions, 0 deletions
