diff --git a/indra/llmessage/aicurlprivate.h b/indra/llmessage/aicurlprivate.h index a475504b1..4f7e9d6cc 100644 --- a/indra/llmessage/aicurlprivate.h +++ b/indra/llmessage/aicurlprivate.h @@ -123,9 +123,9 @@ class CurlEasyHandle : public boost::noncopyable, protected AICurlEasyHandleEven // Overload for integer types that are too small (libcurl demands a long). CURLcode getinfo(CURLINFO info, S32* data) { long ldata; CURLcode res = getinfo_priv(info, &ldata); *data = static_cast(ldata); return res; } CURLcode getinfo(CURLINFO info, U32* data) { long ldata; CURLcode res = getinfo_priv(info, &ldata); *data = static_cast(ldata); return res; } -#else - CURLcode getinfo(CURLINFO info, S32* data) { return getinfo_priv(info, static_cast(data)); } - CURLcode getinfo(CURLINFO info, U32* data) { return getinfo_priv(info, static_cast(data)); } +#else // sizeof(long) == sizeof(int) + CURLcode getinfo(CURLINFO info, S32* data) { return getinfo_priv(info, reinterpret_cast(data)); } + CURLcode getinfo(CURLINFO info, U32* data) { return getinfo_priv(info, reinterpret_cast(data)); } #endif // Perform a file transfer (blocking).