aboutsummaryrefslogtreecommitdiff
path: root/lib/std/builtin.zig
diff options
context:
space:
mode:
authorMeghan <hello@nektro.net>2022-12-15 13:08:51 -0800
committerGitHub <noreply@github.com>2022-12-15 23:08:51 +0200
commit1704971666bce25add6b4f6e409658c5ce8b59aa (patch)
tree2a31b6d2dd10c83e79129c38ba33863b54d77d53 /lib/std/builtin.zig
parent88b49ed00d6d2efb5b523ab15cbf8ffb37383c56 (diff)
downloadzig-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.zig6
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