Fix vc warnings.
This commit is contained in:
@ -186,7 +186,7 @@ namespace
|
|||||||
mov ctx.Esp, esp
|
mov ctx.Esp, esp
|
||||||
}
|
}
|
||||||
#else
|
#else
|
||||||
RtlCaptureContext(&ctx);
|
RtlCaptureContext(&ctx); // Not implemented correctly in x86.
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
return backtraceWithSymbols(&ctx, trace, maxcount, 1);
|
return backtraceWithSymbols(&ctx, trace, maxcount, 1);
|
||||||
|
@ -133,10 +133,10 @@ namespace nv
|
|||||||
if (reinterpret_cast<uint64>(ptr) < 0x10000ULL) return false;
|
if (reinterpret_cast<uint64>(ptr) < 0x10000ULL) return false;
|
||||||
if (reinterpret_cast<uint64>(ptr) >= 0x000007FFFFFEFFFFULL) return false;
|
if (reinterpret_cast<uint64>(ptr) >= 0x000007FFFFFEFFFFULL) return false;
|
||||||
#else
|
#else
|
||||||
if (reinterpret_cast<uint>(ptr) == 0xcccccccc) return false;
|
if (reinterpret_cast<uintptr_t>(ptr) == 0xcccccccc) return false;
|
||||||
if (reinterpret_cast<uint>(ptr) == 0xcdcdcdcd) return false;
|
if (reinterpret_cast<uintptr_t>(ptr) == 0xcdcdcdcd) return false;
|
||||||
if (reinterpret_cast<uint>(ptr) == 0xdddddddd) return false;
|
if (reinterpret_cast<uintptr_t>(ptr) == 0xdddddddd) return false;
|
||||||
if (reinterpret_cast<uint>(ptr) == 0xffffffff) return false;
|
if (reinterpret_cast<uintptr_t>(ptr) == 0xffffffff) return false;
|
||||||
#endif
|
#endif
|
||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user