compiler warning: fix
authorYang Tse <yangsita@gmail.com>
Sat, 21 May 2011 13:06:50 +0000 (15:06 +0200)
committerYang Tse <yangsita@gmail.com>
Sat, 21 May 2011 13:06:50 +0000 (15:06 +0200)
Fix compiler warning: enumerated type mixed with another type

lib/http_ntlm.c

index e279fd0..d99aa11 100644 (file)
@@ -986,7 +986,7 @@ CURLcode Curl_output_ntlm(struct connectdata *conn,
     int ntrespoff;
     unsigned char ntresp[24]; /* fixed-size */
 #endif
-    bool unicode = ntlm->flags & NTLMFLAG_NEGOTIATE_UNICODE;
+    bool unicode = (ntlm->flags & NTLMFLAG_NEGOTIATE_UNICODE)?TRUE:FALSE;
     size_t useroff;
     const char *user;
     size_t userlen;