diff options
| author | Meghan <hello@nektro.net> | 2022-12-15 13:08:51 -0800 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2022-12-15 23:08:51 +0200 |
| commit | 1704971666bce25add6b4f6e409658c5ce8b59aa (patch) | |
| tree | 2a31b6d2dd10c83e79129c38ba33863b54d77d53 /lib/std/builtin.zig | |
| parent | 88b49ed00d6d2efb5b523ab15cbf8ffb37383c56 (diff) | |
| download | zig-1704971666bce25add6b4f6e409658c5ce8b59aa.tar.gz zig-1704971666bce25add6b4f6e409658c5ce8b59aa.zip | |
std: make builtin.Type.{Int,Float}.bits a u16 instead of comptime_int
Diffstat (limited to 'lib/std/builtin.zig')
| -rw-r--r-- | lib/std/builtin.zig | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/lib/std/builtin.zig b/lib/std/builtin.zig index bf3c3e1ee3..2d56b477f9 100644 --- a/lib/std/builtin.zig +++ b/lib/std/builtin.zig @@ -220,15 +220,13 @@ pub const Type = union(enum) { /// therefore must be kept in sync with the compiler implementation. pub const Int = struct { signedness: Signedness, - /// TODO make this u16 instead of comptime_int - bits: comptime_int, + bits: u16, }; /// This data structure is used by the Zig language code generation and /// therefore must be kept in sync with the compiler implementation. pub const Float = struct { - /// TODO make this u16 instead of comptime_int - bits: comptime_int, + bits: u16, }; /// This data structure is used by the Zig language code generation and |
