Fixing some compiler warnings.

This commit is contained in:
Dan Buch 2011-11-01 08:06:00 -04:00
parent 86d78ce333
commit c2615babf7

6
ex21.c
View File

@ -113,9 +113,9 @@ int main(int argc, char *argv[])
printf("UINTPTR_MAX = %d\n", UINTPTR_MAX); printf("UINTPTR_MAX = %d\n", UINTPTR_MAX);
printf("sizeof(intmax_t) = %d\n", sizeof(intmax_t)); printf("sizeof(intmax_t) = %d\n", sizeof(intmax_t));
printf("sizeof(uintmax_t) = %d\n", sizeof(uintmax_t)); printf("sizeof(uintmax_t) = %d\n", sizeof(uintmax_t));
printf("INTMAX_MAX = %d\n", INTMAX_MAX); printf("INTMAX_MAX = %lld\n", INTMAX_MAX);
printf("INTMAX_MIN = %d\n", INTMAX_MIN); printf("INTMAX_MIN = %lld\n", INTMAX_MIN);
printf("UINTMAX_MAX = %d\n", UINTMAX_MAX); printf("UINTMAX_MAX = %lld\n", UINTMAX_MAX);
printf("PTRDIFF_MIN = %d\n", PTRDIFF_MIN); printf("PTRDIFF_MIN = %d\n", PTRDIFF_MIN);
printf("PTRDIFF_MAX = %d\n", PTRDIFF_MAX); printf("PTRDIFF_MAX = %d\n", PTRDIFF_MAX);
printf("SIZE_MAX = %d\n", SIZE_MAX); printf("SIZE_MAX = %d\n", SIZE_MAX);