db/proxy: use ~0 instead of -1

No undefined behavior.
This commit is contained in:
Max Kellermann 2018-09-02 11:06:08 +02:00
parent 81b734be10
commit 18dd082f1e

View File

@ -477,7 +477,7 @@ ProxyDatabase::Connect()
(void)keepalive;
#endif
idle_received = unsigned(-1);
idle_received = ~0u;
is_idle = false;
SocketMonitor::Open(SocketDescriptor(mpd_async_get_fd(mpd_connection_get_async(connection))));