From 18dd082f1e788bb74f0afb2204fca05529a3b042 Mon Sep 17 00:00:00 2001 From: Max Kellermann Date: Sun, 2 Sep 2018 11:06:08 +0200 Subject: [PATCH] db/proxy: use ~0 instead of -1 No undefined behavior. --- src/db/plugins/ProxyDatabasePlugin.cxx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/db/plugins/ProxyDatabasePlugin.cxx b/src/db/plugins/ProxyDatabasePlugin.cxx index 0f9e41165..914559ecf 100644 --- a/src/db/plugins/ProxyDatabasePlugin.cxx +++ b/src/db/plugins/ProxyDatabasePlugin.cxx @@ -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))));