Merge pull request #1397 from LoopDawg/warning-fix-4
Fix several signed/unsigned comparison compile warnings.
This commit is contained in:
commit
9c3fde7f50
@ -1131,7 +1131,7 @@ static void OutputDouble(TInfoSink& out, double value, TOutputTraverser::EExtraO
|
|||||||
{
|
{
|
||||||
out.debug << " : ";
|
out.debug << " : ";
|
||||||
long long b = *reinterpret_cast<long long*>(&value);
|
long long b = *reinterpret_cast<long long*>(&value);
|
||||||
for (int i = 0; i < 8 * sizeof(value); ++i, ++b) {
|
for (size_t i = 0; i < 8 * sizeof(value); ++i, ++b) {
|
||||||
out.debug << ((b & 0x8000000000000000) != 0 ? "1" : "0");
|
out.debug << ((b & 0x8000000000000000) != 0 ? "1" : "0");
|
||||||
b <<= 1;
|
b <<= 1;
|
||||||
}
|
}
|
||||||
|
@ -188,7 +188,7 @@ void TPpContext::TokenStream::putToken(int atom, TPpToken* ppToken)
|
|||||||
// save the numeric value
|
// save the numeric value
|
||||||
if (SaveValue(atom)) {
|
if (SaveValue(atom)) {
|
||||||
const char* n = reinterpret_cast<const char*>(&ppToken->i64val);
|
const char* n = reinterpret_cast<const char*>(&ppToken->i64val);
|
||||||
for (int i = 0; i < sizeof(ppToken->i64val); ++i)
|
for (size_t i = 0; i < sizeof(ppToken->i64val); ++i)
|
||||||
putSubtoken(*n++);
|
putSubtoken(*n++);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
@ -238,7 +238,7 @@ int TPpContext::TokenStream::getToken(TParseContextBase& parseContext, TPpToken
|
|||||||
// get the numeric value
|
// get the numeric value
|
||||||
if (SaveValue(atom)) {
|
if (SaveValue(atom)) {
|
||||||
char* n = reinterpret_cast<char*>(&ppToken->i64val);
|
char* n = reinterpret_cast<char*>(&ppToken->i64val);
|
||||||
for (int i = 0; i < sizeof(ppToken->i64val); ++i)
|
for (size_t i = 0; i < sizeof(ppToken->i64val); ++i)
|
||||||
*n++ = getSubtoken();
|
*n++ = getSubtoken();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user