зеркало из https://github.com/microsoft/X-Mem.git
Minor fixes on warnings discovered while building on Windows
This commit is contained in:
Родитель
1c9ce65e23
Коммит
5570b7a784
|
@ -78,9 +78,9 @@ void LatencyWorker::run() {
|
|||
RandomFunction kernel_fptr = NULL;
|
||||
RandomFunction kernel_dummy_fptr = NULL;
|
||||
uintptr_t* next_address = NULL;
|
||||
uint64_t bytes_per_pass = 0;
|
||||
uint64_t passes = 0;
|
||||
uint64_t p = 0;
|
||||
uint32_t bytes_per_pass = 0;
|
||||
uint32_t passes = 0;
|
||||
uint32_t p = 0;
|
||||
tick_t start_tick = 0;
|
||||
tick_t stop_tick = 0;
|
||||
tick_t elapsed_ticks = 0;
|
||||
|
|
|
@ -71,7 +71,7 @@ size_t MemoryWorker::getLen() {
|
|||
}
|
||||
|
||||
uint32_t MemoryWorker::getBytesPerPass() {
|
||||
size_t retval = 0;
|
||||
uint32_t retval = 0;
|
||||
if (_acquireLock(-1)) {
|
||||
retval = _bytes_per_pass;
|
||||
_releaseLock();
|
||||
|
@ -81,7 +81,7 @@ uint32_t MemoryWorker::getBytesPerPass() {
|
|||
}
|
||||
|
||||
uint32_t MemoryWorker::getPasses() {
|
||||
size_t retval = 0;
|
||||
uint32_t retval = 0;
|
||||
if (_acquireLock(-1)) {
|
||||
retval = _passes;
|
||||
_releaseLock();
|
||||
|
|
Загрузка…
Ссылка в новой задаче