aboutsummaryrefslogtreecommitdiff
path: root/src/type.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 /src/type.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 'src/type.zig')
-rw-r--r--src/type.zig2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/type.zig b/src/type.zig
index 5e6f032798..53aee5051a 100644
--- a/src/type.zig
+++ b/src/type.zig
@@ -4586,7 +4586,7 @@ pub const Type = extern union {
}
/// Asserts the type is an integer, enum, error set, or vector of one of them.
- pub fn intInfo(self: Type, target: Target) struct { signedness: std.builtin.Signedness, bits: u16 } {
+ pub fn intInfo(self: Type, target: Target) std.builtin.Type.Int {
var ty = self;
while (true) switch (ty.tag()) {
.int_unsigned => return .{