Fix vc warnings.
This commit is contained in:
parent
659b684bf2
commit
94dce3b623
@ -186,7 +186,7 @@ namespace
|
||||
mov ctx.Esp, esp
|
||||
}
|
||||
#else
|
||||
RtlCaptureContext(&ctx);
|
||||
RtlCaptureContext(&ctx); // Not implemented correctly in x86.
|
||||
#endif
|
||||
|
||||
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) >= 0x000007FFFFFEFFFFULL) return false;
|
||||
#else
|
||||
if (reinterpret_cast<uint>(ptr) == 0xcccccccc) return false;
|
||||
if (reinterpret_cast<uint>(ptr) == 0xcdcdcdcd) return false;
|
||||
if (reinterpret_cast<uint>(ptr) == 0xdddddddd) return false;
|
||||
if (reinterpret_cast<uint>(ptr) == 0xffffffff) return false;
|
||||
if (reinterpret_cast<uintptr_t>(ptr) == 0xcccccccc) return false;
|
||||
if (reinterpret_cast<uintptr_t>(ptr) == 0xcdcdcdcd) return false;
|
||||
if (reinterpret_cast<uintptr_t>(ptr) == 0xdddddddd) return false;
|
||||
if (reinterpret_cast<uintptr_t>(ptr) == 0xffffffff) return false;
|
||||
#endif
|
||||
return true;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user