summaryrefslogtreecommitdiff
path: root/indra/llcorehttp/httpcommon.cpp
diff options
context:
space:
mode:
authorNat Goodspeed <nat@lindenlab.com>2017-03-06 14:27:29 -0500
committerNat Goodspeed <nat@lindenlab.com>2017-03-06 14:27:29 -0500
commit1771857e6c538382e86ea5b69e36fe8fbaa59f08 (patch)
tree6182c291393b8dbb141d7519b8f1b77d61526774 /indra/llcorehttp/httpcommon.cpp
parent08ed7f676f2ce38937a03c2a4e823e3564981264 (diff)
parentbfdbda24bf96b85104742f5578b5a921bc91a1d8 (diff)
Automated merge with ssh://bitbucket.org/lindenlab/viewer-release
Diffstat (limited to 'indra/llcorehttp/httpcommon.cpp')
-rw-r--r--indra/llcorehttp/httpcommon.cpp9
1 files changed, 5 insertions, 4 deletions
diff --git a/indra/llcorehttp/httpcommon.cpp b/indra/llcorehttp/httpcommon.cpp
index c423047bb0..1829062af6 100644
--- a/indra/llcorehttp/httpcommon.cpp
+++ b/indra/llcorehttp/httpcommon.cpp
@@ -50,11 +50,12 @@ HttpStatus::type_enum_t EXT_CURL_EASY;
HttpStatus::type_enum_t EXT_CURL_MULTI;
HttpStatus::type_enum_t LLCORE;
-HttpStatus::operator unsigned long() const
+HttpStatus::operator U32() const
{
- static const int shift(sizeof(unsigned long) * 4);
+ // Effectively, concatenate mType (high) with mStatus (low).
+ static const int shift(sizeof(mDetails->mStatus) * 8);
- unsigned long result(((unsigned long)mDetails->mType) << shift | (unsigned long)(int)mDetails->mStatus);
+ U32 result(U32(mDetails->mType) << shift | U32((int)mDetails->mStatus));
return result;
}
@@ -64,7 +65,7 @@ std::string HttpStatus::toHex() const
std::ostringstream result;
result.width(8);
result.fill('0');
- result << std::hex << operator unsigned long();
+ result << std::hex << operator U32();
return result.str();
}