[DRTVWR-476] - fix compiler errors 32 bit windows build
parent
a9191a83d9
commit
32f1dfa531
|
|
@ -436,7 +436,7 @@ namespace tut
|
|||
std::vector<U8> binary;
|
||||
for (size_t ix = 0, h = 0xaa; ix < 6; ++ix, h += 0x11)
|
||||
{
|
||||
binary.push_back(h);
|
||||
binary.push_back((U8)h);
|
||||
}
|
||||
// Full defaults arrays. We actually don't care what the LLUUID or
|
||||
// LLDate values are, as long as they're different from the
|
||||
|
|
@ -1145,7 +1145,7 @@ namespace tut
|
|||
std::vector<U8> binary;
|
||||
for (size_t h(0x01), i(0); i < 5; h+= 0x22, ++i)
|
||||
{
|
||||
binary.push_back(h);
|
||||
binary.push_back((U8)h);
|
||||
}
|
||||
LLSD args(LLSDMap("a", LLSDArray(true)(17)(3.14)(123.456)("char*"))
|
||||
("b", LLSDArray("string")
|
||||
|
|
|
|||
|
|
@ -386,7 +386,6 @@ boolean LLImageJPEG::encodeEmptyOutputBuffer( j_compress_ptr cinfo )
|
|||
{
|
||||
self->setLastError("Out of memory in LLImageJPEG::encodeEmptyOutputBuffer( j_compress_ptr cinfo )");
|
||||
LLTHROW(LLContinueError("Out of memory in LLImageJPEG::encodeEmptyOutputBuffer( j_compress_ptr cinfo )"));
|
||||
return false;
|
||||
}
|
||||
memcpy( new_buffer, self->mOutputBuffer, self->mOutputBufferSize ); /* Flawfinder: ignore */
|
||||
delete[] self->mOutputBuffer;
|
||||
|
|
|
|||
|
|
@ -115,9 +115,9 @@ S32 LLProxy::proxyHandshake(LLHost proxy)
|
|||
U32 request_size = socks_username.size() + socks_password.size() + 3;
|
||||
char * password_auth = new char[request_size];
|
||||
password_auth[0] = 0x01;
|
||||
password_auth[1] = socks_username.size();
|
||||
password_auth[1] = (char)(socks_username.size());
|
||||
memcpy(&password_auth[2], socks_username.c_str(), socks_username.size());
|
||||
password_auth[socks_username.size() + 2] = socks_password.size();
|
||||
password_auth[socks_username.size() + 2] = (char)(socks_password.size());
|
||||
memcpy(&password_auth[socks_username.size() + 3], socks_password.c_str(), socks_password.size());
|
||||
|
||||
authmethod_password_reply_t password_reply;
|
||||
|
|
|
|||
|
|
@ -1579,7 +1579,7 @@ void LLModel::Decomposition::fromLLSD(LLSD& decomp)
|
|||
|
||||
range = max-min;
|
||||
|
||||
U16 count = position.size()/6;
|
||||
U16 count = (U16)(position.size()/6);
|
||||
|
||||
for (U32 j = 0; j < count; ++j)
|
||||
{
|
||||
|
|
|
|||
|
|
@ -338,7 +338,7 @@ void LLAccordionCtrl::addCollapsibleCtrl(LLView* view)
|
|||
addChild(accordion_tab);
|
||||
mAccordionTabs.push_back(accordion_tab);
|
||||
|
||||
accordion_tab->setDropDownStateChangedCallback( boost::bind(&LLAccordionCtrl::onCollapseCtrlCloseOpen, this, mAccordionTabs.size() - 1) );
|
||||
accordion_tab->setDropDownStateChangedCallback( boost::bind(&LLAccordionCtrl::onCollapseCtrlCloseOpen, this, (S16)(mAccordionTabs.size() - 1)) );
|
||||
arrange();
|
||||
}
|
||||
|
||||
|
|
|
|||
|
|
@ -1090,7 +1090,7 @@ LLDir::SepOff LLDir::needSep(const std::string& path, const std::string& name) c
|
|||
{
|
||||
// But if BOTH path and name bring a separator, we need not add one.
|
||||
// Moreover, we should actually skip the leading separator of 'name'.
|
||||
return SepOff(false, seplen);
|
||||
return SepOff(false, (unsigned short)seplen);
|
||||
}
|
||||
// Here we know that either path_ends_sep or name_starts_sep is true --
|
||||
// but not both. So don't add a separator, and don't skip any characters:
|
||||
|
|
|
|||
|
|
@ -778,7 +778,7 @@ BOOL LLPanelEditWearable::postBuild()
|
|||
LL_WARNS() << "could not get wearable dictionary entry for wearable of type: " << type << LL_ENDL;
|
||||
continue;
|
||||
}
|
||||
U8 num_subparts = wearable_entry->mSubparts.size();
|
||||
U8 num_subparts = (U8)(wearable_entry->mSubparts.size());
|
||||
|
||||
for (U8 index = 0; index < num_subparts; ++index)
|
||||
{
|
||||
|
|
@ -1181,7 +1181,7 @@ void LLPanelEditWearable::showWearable(LLViewerWearable* wearable, BOOL show, BO
|
|||
updatePanelPickerControls(type);
|
||||
|
||||
// clear and rebuild visual param list
|
||||
U8 num_subparts = wearable_entry->mSubparts.size();
|
||||
U8 num_subparts = (U8)(wearable_entry->mSubparts.size());
|
||||
|
||||
for (U8 index = 0; index < num_subparts; ++index)
|
||||
{
|
||||
|
|
@ -1372,7 +1372,7 @@ void LLPanelEditWearable::updateScrollingPanelUI()
|
|||
const LLEditWearableDictionary::WearableEntry *wearable_entry = LLEditWearableDictionary::getInstance()->getWearable(type);
|
||||
llassert(wearable_entry);
|
||||
if (!wearable_entry) return;
|
||||
U8 num_subparts = wearable_entry->mSubparts.size();
|
||||
U8 num_subparts = (U8)(wearable_entry->mSubparts.size());
|
||||
|
||||
LLScrollingPanelParam::sUpdateDelayFrames = 0;
|
||||
for (U8 index = 0; index < num_subparts; ++index)
|
||||
|
|
|
|||
|
|
@ -2063,7 +2063,7 @@ void LLVOVolume::setNumTEs(const U8 num_tes)
|
|||
}
|
||||
else if(old_num_tes > num_tes && mMediaImplList.size() > num_tes) //old faces removed
|
||||
{
|
||||
U8 end = mMediaImplList.size() ;
|
||||
U8 end = (U8)(mMediaImplList.size()) ;
|
||||
for(U8 i = num_tes; i < end ; i++)
|
||||
{
|
||||
removeMediaImpl(i) ;
|
||||
|
|
|
|||
Loading…
Reference in New Issue