Fix cast_test for clang.
The code was not portable and gcc could produce the same problem.
This commit is contained in:
parent
86992622dc
commit
03646ad46f
1 changed files with 2 additions and 2 deletions
|
@ -1831,9 +1831,9 @@ void cast_test()
|
||||||
|
|
||||||
/* from pointer to integer types */
|
/* from pointer to integer types */
|
||||||
printf("%d %d %ld %ld %lld %lld\n",
|
printf("%d %d %ld %ld %lld %lld\n",
|
||||||
(int)p, (unsigned int)p,
|
(int)(long)p, (unsigned int)(long)p,
|
||||||
(long)p, (unsigned long)p,
|
(long)p, (unsigned long)p,
|
||||||
(long long)p, (unsigned long long)p);
|
(long long)(long)p, (unsigned long long)(long)p);
|
||||||
|
|
||||||
/* from integers to pointers */
|
/* from integers to pointers */
|
||||||
printf("%p %p %p %p\n",
|
printf("%p %p %p %p\n",
|
||||||
|
|
Loading…
Reference in a new issue