@@ -144,8 +144,8 @@ predicate isUnsignedType(NumericType t) { t.getSignedness() = Unsigned() }
144144/**
145145 * One of the 10 canonical integer types, which are the standard integer types.
146146 */
147- class CanonicalIntegerTypes extends NumericType , IntegralType {
148- CanonicalIntegerTypes ( ) { this = this .getCanonicalArithmeticType ( ) }
147+ class CanonicalIntegerType extends NumericType , IntegralType {
148+ CanonicalIntegerType ( ) { this = this .getCanonicalArithmeticType ( ) }
149149}
150150
151151predicate isAssignment ( Expr source , Type targetType , string context ) {
@@ -264,14 +264,14 @@ predicate isPreConversionAssignment(Expr source, Type targetType, string context
264264 *
265265 * The type is determined by the signedness of the bit field and the number of bits.
266266 */
267- CanonicalIntegerTypes getBitFieldType ( BitField bf ) {
267+ CanonicalIntegerType getBitFieldType ( BitField bf ) {
268268 exists ( NumericType bitfieldActualType |
269269 bitfieldActualType = bf .getType ( ) and
270270 // Integral type with the same signedness as the bit field, and big enough to hold the bit field value
271271 result .getSignedness ( ) = bitfieldActualType .getSignedness ( ) and
272272 result .getSize ( ) * 8 >= bf .getNumBits ( ) and
273273 // No smaller integral type can hold the bit field value
274- not exists ( CanonicalIntegerTypes other |
274+ not exists ( CanonicalIntegerType other |
275275 other .getSize ( ) * 8 >= bf .getNumBits ( ) and
276276 other .getSignedness ( ) = result .getSignedness ( )
277277 |
0 commit comments