diff options
| author | Nicholas Nethercote <n.nethercote@gmail.com> | 2021-12-01 07:22:29 +1100 |
|---|---|---|
| committer | Nicholas Nethercote <n.nethercote@gmail.com> | 2021-12-01 15:08:37 +1100 |
| commit | e7ee8230ced7c14043ca51191063c13e7fbc7212 (patch) | |
| tree | 63b3083a08f337e7cdb72977c1c009ba6398af33 /compiler/rustc_codegen_gcc/example/std_example.rs | |
| parent | 686e313a9aa14107c8631ffe48fa09110a7692db (diff) | |
| download | rust-e7ee8230ced7c14043ca51191063c13e7fbc7212.tar.gz rust-e7ee8230ced7c14043ca51191063c13e7fbc7212.zip | |
Fix bad `NodeId` limit checking.
`Resolver::next_node_id` converts a `u32` to a `usize` (which is possibly bigger), does a checked add, and then converts the result back to a `u32`. The `usize` conversion completely subverts the checked add! This commit removes the conversion to/from `usize`.
Diffstat (limited to 'compiler/rustc_codegen_gcc/example/std_example.rs')
0 files changed, 0 insertions, 0 deletions
