diff options
| author | Jacob Young <jacobly0@users.noreply.github.com> | 2022-09-20 22:46:42 -0400 |
|---|---|---|
| committer | Jacob Young <jacobly0@users.noreply.github.com> | 2022-10-11 19:51:03 -0400 |
| commit | 7a89eebfc64fd81a504700e105bdc2609bb2a442 (patch) | |
| tree | 133017cd1927707e78cec899399f3c9b6ef3cd58 /src/codegen/c.zig | |
| parent | e6ebdcb82ed9fd226ef18670115b8b2617c0a392 (diff) | |
| download | zig-7a89eebfc64fd81a504700e105bdc2609bb2a442.tar.gz zig-7a89eebfc64fd81a504700e105bdc2609bb2a442.zip | |
std.math: add support to cast for a comptime_int argument
This allows converting a comptime_int to an optional integer type, which
either behaves the same as an implicit cast or produces null if the
argument is outside the range of the destination type.
Diffstat (limited to 'src/codegen/c.zig')
0 files changed, 0 insertions, 0 deletions
