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:
Christoph M. Becker 2025-01-21 20:05:29 +01:00 committed by GitHub
parent 75bd1a9dc0
commit aa76127d01
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
11 changed files with 20 additions and 20 deletions

View file

@ -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