diag: explain pointer-sized cast restrictions in source advice
This commit is contained in:
1 parent
8a714ba6de
commit
6a02659f31
23 files changed
+96
-8
No files matched your search
@@ -1737,7 +1737,7 @@ const Lowerer = struct {
|
||||
if (x.mode == .widen) {
|
||||
const a = std.meta.stringToEnum(air_module.IntType, v.ty.int).?;
|
||||
const b = std.meta.stringToEnum(air_module.IntType, to.int).?;
|
||||
if (a != b and !verifier_types.lossless(a, b))
|
||||
if (!verifier_types.lossless(a, b))
|
||||
return l.invalidWidening(e.span, &.{ .{ .name = "from", .value = v.ty.int }, .{ .name = "to", .value = to.int } });
|
||||
}
|
||||
const mode = switch (x.mode) {
|
||||
|
||||
Reference in new issue
Block a user