File tree Expand file tree Collapse file tree 1 file changed +4
-6
lines changed
cpp/ql/src/semmle/code/cpp/ir/internal Expand file tree Collapse file tree 1 file changed +4
-6
lines changed Original file line number Diff line number Diff line change @@ -415,12 +415,10 @@ CppWrappedType getCanonicalBooleanType(int byteSize) {
415415 * Compute the sorting priority of an `IntegralType` based on its signedness.
416416 */
417417private int getSignPriority ( IntegralType type ) {
418- /*
419- Explicitly unsigned types sort first. Explicitly signed types sort last. Types with no explicit
420- signedness sort in between. This lets us always choose `int` over `signed int`, while also
421- choosing `unsigned char`+`char` when `char` is signed, and `unsigned char`+`signed char` when
422- `char` is unsigned.
423- */
418+ // Explicitly unsigned types sort first. Explicitly signed types sort last. Types with no explicit
419+ // signedness sort in between. This lets us always choose `int` over `signed int`, while also
420+ // choosing `unsigned char`+`char` when `char` is signed, and `unsigned char`+`signed char` when
421+ // `char` is unsigned.
424422 if type .isExplicitlyUnsigned ( )
425423 then result = 2
426424 else if type .isExplicitlySigned ( )
You can’t perform that action at this time.
0 commit comments