mirror of
https://bitbucket.org/smil3y/katie.git
synced 2025-02-24 10:52:56 +00:00
fix some compiler warnings
Signed-off-by: Ivailo Monev <xakepa10@laimg.moc>
This commit is contained in:
parent
ec8499c7e2
commit
db88a21f69
3 changed files with 5 additions and 4 deletions
|
@ -213,7 +213,7 @@ PassRefPtr<UString::Rep> Identifier::addSlowCase(JSGlobalData* globalData, UStri
|
|||
Q_ASSERT(!r->isIdentifier());
|
||||
if (r->size() == 1) {
|
||||
UChar c = r->data()[0];
|
||||
if (c <= 0xFF)
|
||||
if (c <= 0xFF) {
|
||||
r = globalData->smallStrings.singleCharacterStringRep(c);
|
||||
if (r->isIdentifier()) {
|
||||
#ifndef NDEBUG
|
||||
|
@ -221,6 +221,7 @@ PassRefPtr<UString::Rep> Identifier::addSlowCase(JSGlobalData* globalData, UStri
|
|||
#endif
|
||||
return r;
|
||||
}
|
||||
}
|
||||
}
|
||||
if (!r->size()) {
|
||||
UString::Rep::empty().hash();
|
||||
|
|
4
src/3rdparty/javascriptcore/wtf/dtoa.cpp
vendored
4
src/3rdparty/javascriptcore/wtf/dtoa.cpp
vendored
|
@ -885,13 +885,13 @@ static ALWAYS_INLINE void d2b(BigInt& b, U* d, int* e, int* bits)
|
|||
if ((k = lo0bits(&y))) {
|
||||
x[0] = y | (z << (32 - k));
|
||||
z >>= k;
|
||||
} else
|
||||
} else {
|
||||
x[0] = y;
|
||||
if (z) {
|
||||
b.resize(2);
|
||||
x[1] = z;
|
||||
}
|
||||
|
||||
}
|
||||
#ifndef Sudden_Underflow
|
||||
i = b.size();
|
||||
#endif
|
||||
|
|
|
@ -277,7 +277,7 @@ QString QHostInfo::localDomainName()
|
|||
// using thread-safe version
|
||||
res_state state = static_cast<res_state>(malloc(sizeof(res_state)));
|
||||
Q_CHECK_PTR(state);
|
||||
memset(state, 0, sizeof(res_state));
|
||||
memset(state, 0, sizeof(*state));
|
||||
res_ninit(state);
|
||||
QString domainName = QUrl::fromAce(state->defdname);
|
||||
if (domainName.isEmpty())
|
||||
|
|
Loading…
Add table
Reference in a new issue