mirror of
https://github.com/cemu-project/Cemu.git
synced 2025-12-12 01:36:58 +00:00
refactor: Fix trivial compiler warnings (#1675)
This commit is contained in:
parent
de4bf7c2c1
commit
6013ac1823
6 changed files with 8 additions and 10 deletions
|
|
@ -276,7 +276,7 @@ void IMLRA_DeleteAllRanges(ppcImlGenContext_t* ppcImlGenContext)
|
|||
for(auto& seg : ppcImlGenContext->segmentList2)
|
||||
{
|
||||
raLivenessRange* cur;
|
||||
while(cur = seg->raInfo.linkedList_allSubranges)
|
||||
while ((cur = seg->raInfo.linkedList_allSubranges))
|
||||
IMLRA_DeleteRange(ppcImlGenContext, cur);
|
||||
seg->raInfo.linkedList_allSubranges = nullptr;
|
||||
seg->raInfo.linkedList_perVirtualRegister.clear();
|
||||
|
|
|
|||
|
|
@ -80,7 +80,7 @@ private:
|
|||
|
||||
D3DKMT_OPENADAPTERFROMHDC OpenAdapterData;
|
||||
|
||||
*phAdapter = NULL;
|
||||
*phAdapter = 0;
|
||||
*pOutput = 0;
|
||||
|
||||
HMONITOR hMonitor = MonitorFromWindow(hWnd, MONITOR_DEFAULTTONEAREST);
|
||||
|
|
|
|||
|
|
@ -1,5 +1,3 @@
|
|||
#pragma once
|
||||
|
||||
#include "nn_olv_InitializeTypes.h"
|
||||
#include "CafeSystem.h"
|
||||
#include "Cafe/OS/libs/nn_act/nn_act.h"
|
||||
|
|
|
|||
|
|
@ -38,12 +38,12 @@ namespace nn
|
|||
if (!pParam->communityId)
|
||||
return OLV_RESULT_INVALID_PARAMETER;
|
||||
|
||||
snprintf(requestUrl, sizeof(requestUrl), "%s/v1/communities/%lu.delete", g_DiscoveryResults.apiEndpoint, pParam->communityId.value());
|
||||
snprintf(requestUrl, sizeof(requestUrl), "%s/v1/communities/%u.delete", g_DiscoveryResults.apiEndpoint, pParam->communityId.value());
|
||||
}
|
||||
else
|
||||
{
|
||||
if (pParam->communityId)
|
||||
snprintf(requestUrl, sizeof(requestUrl), "%s/v1/communities/%lu", g_DiscoveryResults.apiEndpoint, pParam->communityId.value());
|
||||
snprintf(requestUrl, sizeof(requestUrl), "%s/v1/communities/%u", g_DiscoveryResults.apiEndpoint, pParam->communityId.value());
|
||||
else
|
||||
snprintf(requestUrl, sizeof(requestUrl), "%s/v1/communities", g_DiscoveryResults.apiEndpoint);
|
||||
}
|
||||
|
|
|
|||
|
|
@ -36,9 +36,9 @@ namespace nn
|
|||
|
||||
char requestUrl[512];
|
||||
if (pParam->flags & UploadFavoriteToCommunityDataParam::FLAG_DELETION)
|
||||
snprintf(requestUrl, sizeof(requestUrl), "%s/v1/communities/%lu.unfavorite", g_DiscoveryResults.apiEndpoint, pParam->communityId.value());
|
||||
snprintf(requestUrl, sizeof(requestUrl), "%s/v1/communities/%u.unfavorite", g_DiscoveryResults.apiEndpoint, pParam->communityId.value());
|
||||
else
|
||||
snprintf(requestUrl, sizeof(requestUrl), "%s/v1/communities/%lu.favorite", g_DiscoveryResults.apiEndpoint, pParam->communityId.value());
|
||||
snprintf(requestUrl, sizeof(requestUrl), "%s/v1/communities/%u.favorite", g_DiscoveryResults.apiEndpoint, pParam->communityId.value());
|
||||
|
||||
CurlRequestHelper req;
|
||||
req.initate(ActiveSettings::GetNetworkService(), requestUrl, CurlRequestHelper::SERVER_SSL_CONTEXT::OLIVE);
|
||||
|
|
|
|||
|
|
@ -283,7 +283,7 @@ private:
|
|||
{
|
||||
if (itr.chunkIndex != dbgRange.chunkIndex)
|
||||
continue;
|
||||
if (itr.offset < (dbgRange.offset + dbgRange.size) && (itr.offset + itr.size) >(dbgRange.offset))
|
||||
if (itr.offset < (dbgRange.offset + dbgRange.size) && (itr.offset + itr.size) > dbgRange.offset)
|
||||
cemu_assert_error();
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue