mirror of
https://github.com/mirror/tinycc.git
synced 2025-03-26 11:10:36 +08:00
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
@ -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 New Issue
Block a user