diff options
| author | 2020-03-18 17:02:55 -0300 | |
|---|---|---|
| committer | 2020-03-18 20:03:19 -0300 | |
| commit | ba9674862de3e537b35bdb4d4c245ea7a247eb2f (patch) | |
| tree | 5ee8d4b8a3005ec6cd2e37ebe4cac3713a08140d /externals | |
| parent | Merge pull request #3530 from ReinUsesLisp/fix-clang (diff) | |
| download | yuzu-ba9674862de3e537b35bdb4d4c245ea7a247eb2f.tar.gz yuzu-ba9674862de3e537b35bdb4d4c245ea7a247eb2f.tar.xz yuzu-ba9674862de3e537b35bdb4d4c245ea7a247eb2f.zip | |
microprofile: Silence sign comparison warning
Diffstat (limited to 'externals')
| -rw-r--r-- | externals/microprofile/microprofile.h | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/externals/microprofile/microprofile.h b/externals/microprofile/microprofile.h index c1556d10c..9d830f7bf 100644 --- a/externals/microprofile/microprofile.h +++ b/externals/microprofile/microprofile.h | |||
| @@ -828,7 +828,7 @@ inline MicroProfileLogEntry MicroProfileMakeLogIndex(uint64_t nBegin, MicroProfi | |||
| 828 | MicroProfileLogEntry Entry = (nBegin<<62) | ((0x3fff&nToken)<<48) | (MP_LOG_TICK_MASK&nTick); | 828 | MicroProfileLogEntry Entry = (nBegin<<62) | ((0x3fff&nToken)<<48) | (MP_LOG_TICK_MASK&nTick); |
| 829 | int t = MicroProfileLogType(Entry); | 829 | int t = MicroProfileLogType(Entry); |
| 830 | uint64_t nTimerIndex = MicroProfileLogTimerIndex(Entry); | 830 | uint64_t nTimerIndex = MicroProfileLogTimerIndex(Entry); |
| 831 | MP_ASSERT(t == nBegin); | 831 | MP_ASSERT((uint64_t)t == nBegin); |
| 832 | MP_ASSERT(nTimerIndex == (nToken&0x3fff)); | 832 | MP_ASSERT(nTimerIndex == (nToken&0x3fff)); |
| 833 | return Entry; | 833 | return Entry; |
| 834 | 834 | ||
| @@ -1556,10 +1556,10 @@ void MicroProfileFlip() | |||
| 1556 | 1556 | ||
| 1557 | pFramePut->nFrameStartCpu = MP_TICK(); | 1557 | pFramePut->nFrameStartCpu = MP_TICK(); |
| 1558 | pFramePut->nFrameStartGpu = (uint32_t)MicroProfileGpuInsertTimeStamp(); | 1558 | pFramePut->nFrameStartGpu = (uint32_t)MicroProfileGpuInsertTimeStamp(); |
| 1559 | if(pFrameNext->nFrameStartGpu != (uint64_t)-1) | 1559 | if(pFrameNext->nFrameStartGpu != -1) |
| 1560 | pFrameNext->nFrameStartGpu = MicroProfileGpuGetTimeStamp((uint32_t)pFrameNext->nFrameStartGpu); | 1560 | pFrameNext->nFrameStartGpu = MicroProfileGpuGetTimeStamp((uint32_t)pFrameNext->nFrameStartGpu); |
| 1561 | 1561 | ||
| 1562 | if(pFrameCurrent->nFrameStartGpu == (uint64_t)-1) | 1562 | if(pFrameCurrent->nFrameStartGpu == -1) |
| 1563 | pFrameCurrent->nFrameStartGpu = pFrameNext->nFrameStartGpu + 1; | 1563 | pFrameCurrent->nFrameStartGpu = pFrameNext->nFrameStartGpu + 1; |
| 1564 | 1564 | ||
| 1565 | uint64_t nFrameStartCpu = pFrameCurrent->nFrameStartCpu; | 1565 | uint64_t nFrameStartCpu = pFrameCurrent->nFrameStartCpu; |