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 /src/type.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 'src/type.zig')
| -rw-r--r-- | src/type.zig | 2 |
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 .{ |
