{"action":"reopened","issue":{"url":"https://api.github.com/repos/bagder/curl/issues/478","labels_url":"https://api.github.com/repos/bagder/curl/issues/478/labels{/name}","comments_url":"https://api.github.com/repos/bagder/curl/issues/478/comments","events_url":"https://api.github.com/repos/bagder/curl/issues/478/events","html_url":"https://github.com/bagder/curl/issues/478","id":110409539,"number":478,"title":"Use of long long type outside of HAVE_LONGLONG ifdef","user":{"login":"gkinseyhpw","id":15030050,"avatar_url":"https://avatars.githubusercontent.com/u/15030050?v=3","gravatar_id":"","url":"https://api.github.com/users/gkinseyhpw","html_url":"https://github.com/gkinseyhpw","followers_url":"https://api.github.com/users/gkinseyhpw/followers","following_url":"https://api.github.com/users/gkinseyhpw/following{/other_user}","gists_url":"https://api.github.com/users/gkinseyhpw/gists{/gist_id}","starred_url":"https://api.github.com/users/gkinseyhpw/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/gkinseyhpw/subscriptions","organizations_url":"https://api.github.com/users/gkinseyhpw/orgs","repos_url":"https://api.github.com/users/gkinseyhpw/repos","events_url":"https://api.github.com/users/gkinseyhpw/events{/privacy}","received_events_url":"https://api.github.com/users/gkinseyhpw/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":{"login":"bagder","id":177011,"avatar_url":"https://avatars.githubusercontent.com/u/177011?v=3","gravatar_id":"","url":"https://api.github.com/users/bagder","html_url":"https://github.com/bagder","followers_url":"https://api.github.com/users/bagder/followers","following_url":"https://api.github.com/users/bagder/following{/other_user}","gists_url":"https://api.github.com/users/bagder/gists{/gist_id}","starred_url":"https://api.github.com/users/bagder/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/bagder/subscriptions","organizations_url":"https://api.github.com/users/bagder/orgs","repos_url":"https://api.github.com/users/bagder/repos","events_url":"https://api.github.com/users/bagder/events{/privacy}","received_events_url":"https://api.github.com/users/bagder/received_events","type":"User","site_admin":false},"milestone":null,"comments":10,"created_at":"2015-10-08T09:42:21Z","updated_at":"2015-10-09T07:36:51Z","closed_at":null,"body":"In lib/curl_ntlm_core.c there is a usage of the \"long long\" type outside of the ifdef HAVE_LONGLONG which means the code doesn't compile on platforms without \"long long\".\r\n\r\nThe following patch fixes it.\r\n\r\nIndex: curl_ntlm_core.c\r\n===================================================================\r\n--- curl_ntlm_core.c\t(revision 2295)\r\n+++ curl_ntlm_core.c\t(revision 2296)\r\n@@ -678,7 +678,11 @@\r\n     tw = 11644473600ULL * 10000000ULL;\r\n   else\r\n #endif\r\n+#if defined(HAVE_LONGLONG)\r\n   tw = ((long long)time(NULL) + 11644473600ULL) * 10000000ULL;\r\n+#else\r\n+  tw = ((__int64)time(NULL) + 11644473600) * 10000000;\r\n+#endif\r\n \r\n   /* Calculate the response len */\r\n   len = NTLM_HMAC_MD5_LEN + NTLMv2_BLOB_LEN;\r\n"}}