mirror of
https://github.com/php/php-src.git
synced 2025-08-15 21:48:51 +02:00
Address more Clang warnings (GH-17506)
We prefer clean solutions (such as declaring the proper type in the
first place, or introducing a portable format specifier) where easily
possible, but resort to casts otherwise.
We also port f1480ab14b
.
This commit is contained in:
parent
75bd1a9dc0
commit
aa76127d01
11 changed files with 20 additions and 20 deletions
|
@ -96,8 +96,10 @@ END_EXTERN_C()
|
|||
|
||||
#ifdef PHP_WIN32
|
||||
typedef SOCKET php_socket_t;
|
||||
#define PHP_SOCKET_FMT "%" PRIxPTR
|
||||
#else
|
||||
typedef int php_socket_t;
|
||||
#define PHP_SOCKET_FMT "%d"
|
||||
#endif
|
||||
|
||||
#ifdef PHP_WIN32
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue