| ... | ... | @@ -342,12 +342,6 @@ pub const DeclGen = struct { |
| 342 | 342 | // to the assigned pointer type. Note this is just a hack to fix warnings from ordered comparisons (<, >, etc) |
| 343 | 343 | // between pointers and 0, which is an extension to begin with. |
| 344 | 344 | .zero => try writer.writeByte('0'), |
| 345 | | .one => { |
| 346 | | // int constants like 1 will not cast to the pointer however. |
| 347 | | try writer.writeAll("(("); |
| 348 | | try dg.renderType(writer, ty); |
| 349 | | return writer.writeAll(")1)"); |
| 350 | | }, |
| 351 | 345 | .decl_ref => { |
| 352 | 346 | const decl = val.castTag(.decl_ref).?.data; |
| 353 | 347 | return dg.renderDeclValue(writer, ty, val, decl); |
| ... | ... | @@ -376,7 +370,7 @@ pub const DeclGen = struct { |
| 376 | 370 | const decl = val.castTag(.extern_fn).?.data; |
| 377 | 371 | try dg.renderDeclName(decl, writer); |
| 378 | 372 | }, |
| 379 | | .int_u64 => { |
| 373 | .int_u64, .one => { |
| 380 | 374 | try writer.writeAll("(("); |
| 381 | 375 | try dg.renderType(writer, ty); |
| 382 | 376 | try writer.print(")0x{x}u)", .{val.toUnsignedInt()}); |