From b48bf7470db0a06918d86c1200c62bfe4e88b39c Mon Sep 17 00:00:00 2001
From: Daniel Stenberg <daniel@haxx.se>
Date: Tue, 13 Apr 2004 10:42:32 +0000
Subject: [PATCH] proper typecast to prevent compiler warning

---
 lib/url.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/lib/url.c b/lib/url.c
index d3ee364692..de31fd1071 100644
--- a/lib/url.c
+++ b/lib/url.c
@@ -1316,7 +1316,7 @@ CURLcode Curl_setopt(struct SessionHandle *data, CURLoption option, ...)
      * Enable or disable TCP_NODELAY, which will disable/enable the Nagle
      * algorithm
      */
-    data->set.tcp_nodelay = va_arg(param, long);
+    data->set.tcp_nodelay = (bool)va_arg(param, long);
     break;
 
   default:
-- 
GitLab