X-Git-Url: https://pd.if.org/git/?p=pdclib;a=blobdiff_plain;f=internals%2F_PDCLIB_int.h;h=90276c08dfc5098d14ab67246a7525d169468150;hp=e449e2db53b6c9cae3ccb90eee17ee3a501912d5;hb=bdd913fd4a86f506a7fc42a04363c75fcb0ab093;hpb=1b1c0ce961e039ee602d179b9257abeabae65010 diff --git a/internals/_PDCLIB_int.h b/internals/_PDCLIB_int.h index e449e2d..90276c0 100644 --- a/internals/_PDCLIB_int.h +++ b/internals/_PDCLIB_int.h @@ -354,8 +354,8 @@ const char * _PDCLIB_strtox_prelim( const char * p, char * sign, int * base ); _PDCLIB_uintmax_t _PDCLIB_strtox_main( const char ** p, unsigned int base, _PDCLIB_uintmax_t error, _PDCLIB_uintmax_t limval, int limdigit, char * sign ); /* Digits arrays used by various integer conversion functions */ -extern char _PDCLIB_digits[]; -extern char _PDCLIB_Xdigits[]; +extern const char _PDCLIB_digits[]; +extern const char _PDCLIB_Xdigits[]; /* The worker for all printf() type of functions. The pointer spec should point to the introducing '%' of a conversion specifier. The status structure is to @@ -453,5 +453,7 @@ _PDCLIB_static_assert( sizeof( sizeof( int ) ) == sizeof( _PDCLIB_size ), "Compi int _PDCLIB_assert_array[2]; _PDCLIB_static_assert( sizeof( &_PDCLIB_assert_array[1] - &_PDCLIB_assert_array[0] ) == sizeof( _PDCLIB_ptrdiff ), "Compiler disagrees on _PDCLIB_ptrdiff." ); +_PDCLIB_static_assert( sizeof( void * ) == sizeof( _PDCLIB_intmax_t ), "Compiler disagrees on _PDCLIB_intmax_t." ); +_PDCLIB_static_assert( sizeof( void * ) == sizeof( _PDCLIB_uintmax_t ), "Compiler disagrees on _PDCLIB_uintmax_t." ); #endif