diff --git a/cpp/ql/src/semmle/code/cpp/ir/internal/CppType.qll b/cpp/ql/src/semmle/code/cpp/ir/internal/CppType.qll index c5ebd08f65f..6f17d53e6cf 100644 --- a/cpp/ql/src/semmle/code/cpp/ir/internal/CppType.qll +++ b/cpp/ql/src/semmle/code/cpp/ir/internal/CppType.qll @@ -415,12 +415,10 @@ CppWrappedType getCanonicalBooleanType(int byteSize) { * Compute the sorting priority of an `IntegralType` based on its signedness. */ private int getSignPriority(IntegralType type) { - /* - Explicitly unsigned types sort first. Explicitly signed types sort last. Types with no explicit - signedness sort in between. This lets us always choose `int` over `signed int`, while also - choosing `unsigned char`+`char` when `char` is signed, and `unsigned char`+`signed char` when - `char` is unsigned. - */ + // Explicitly unsigned types sort first. Explicitly signed types sort last. Types with no explicit + // signedness sort in between. This lets us always choose `int` over `signed int`, while also + // choosing `unsigned char`+`char` when `char` is signed, and `unsigned char`+`signed char` when + // `char` is unsigned. if type.isExplicitlyUnsigned() then result = 2 else if type.isExplicitlySigned()