From 0d7dd3cd43bf9bcb09d5c8401d8981df7fc5912a Mon Sep 17 00:00:00 2001 From: Hanno Becker Date: Fri, 19 Oct 2018 17:32:29 +0100 Subject: [PATCH] Check that size_t and ptrdiff_t don't have padding Signed-off-by: Dave Rodgman --- programs/test/selftest.c | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) diff --git a/programs/test/selftest.c b/programs/test/selftest.c index a545d4861f..d2f0c19964 100644 --- a/programs/test/selftest.c +++ b/programs/test/selftest.c @@ -407,15 +407,17 @@ int main( int argc, char *argv[] ) } \ } while( 0 ) - CHECK_PADDING_SIGNED( short, SHRT ); - CHECK_PADDING_SIGNED( int, INT ); - CHECK_PADDING_SIGNED( long, LONG ); - CHECK_PADDING_SIGNED( long long, LLONG ); + CHECK_PADDING_SIGNED( short, SHRT ); + CHECK_PADDING_SIGNED( int, INT ); + CHECK_PADDING_SIGNED( long, LONG ); + CHECK_PADDING_SIGNED( long long, LLONG ); + CHECK_PADDING_SIGNED( ptrdiff_t, PTRDIFF ); CHECK_PADDING_UNSIGNED( unsigned short, USHRT ); CHECK_PADDING_UNSIGNED( unsigned, UINT ); CHECK_PADDING_UNSIGNED( unsigned long, ULONG ); CHECK_PADDING_UNSIGNED( unsigned long long, ULLONG ); + CHECK_PADDING_UNSIGNED( size_t, SIZE ); #undef CHECK_PADDING_SIGNED #undef CHECK_PADDING_UNSIGNED