mirror of
https://github.com/mirror/tinycc.git
synced 2024-12-26 03:50:07 +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 */
|
||||
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 long)p, (unsigned long long)p);
|
||||
(long long)(long)p, (unsigned long long)(long)p);
|
||||
|
||||
/* from integers to pointers */
|
||||
printf("%p %p %p %p\n",
|
||||
|
Loading…
Reference in New Issue
Block a user