about summary refs log tree commit diff
path: root/compiler/rustc_codegen_gcc
diff options
context:
space:
mode:
authorMahmoud Mazouz <mazouz.mahmoud@outlook.com>2022-11-19 18:53:36 +0100
committerMahmoud Mazouz <mazouz.mahmoud@outlook.com>2022-11-19 18:53:36 +0100
commit01f2a1542006631d6644ac767926e3bd3324f3c0 (patch)
tree75ea4bc21157c4ef207f4bae0559cf06c9184aa2 /compiler/rustc_codegen_gcc
parent452cf4f7109f58433ac38be7d3da527408571054 (diff)
downloadrust-01f2a1542006631d6644ac767926e3bd3324f3c0.tar.gz
rust-01f2a1542006631d6644ac767926e3bd3324f3c0.zip
Fix substraction with overflow in `wrong_number_of_generic_args.rs`
Rarranging the substration and equality check into an addition and an equality
check is sufficient.

Algebra is cool, isn't it?

Co-authored-by: Michael Goulet <michael@errs.io>
Diffstat (limited to 'compiler/rustc_codegen_gcc')
0 files changed, 0 insertions, 0 deletions