Skip to content

Commit

Permalink
fix: variable shadowing warnings
Browse files Browse the repository at this point in the history
  • Loading branch information
myT committed Jan 8, 2024
1 parent 55c81c1 commit f9eddde
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 deletions.
6 changes: 3 additions & 3 deletions UDT_DLL/src/apps/app_demo_cutter.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -906,16 +906,16 @@ static bool KeepOnlyCuttableDemoFiles(const char* name, u64 /*size*/, void* /*us
return HasCuttableDemoFileExtension(name);
}

static bool LoadChatConfig(CutByChatConfig& config, const ProgramOptions& options)
static bool LoadChatConfig(CutByChatConfig& config, const ProgramOptions& progOptions)
{
if(!LoadConfig(config, options.ConfigFilePath))
{
fprintf(stderr, "Failed to load the config file.\n");
return false;
}

if(options.StartOffsetSec > 0) config.StartOffsetSec = (int)options.StartOffsetSec;
if(options.EndOffsetSec > 0) config.EndOffsetSec = (int)options.EndOffsetSec;
if(progOptions.StartOffsetSec > 0) config.StartOffsetSec = (int)progOptions.StartOffsetSec;
if(progOptions.EndOffsetSec > 0) config.EndOffsetSec = (int)progOptions.EndOffsetSec;

return true;
}
Expand Down
4 changes: 2 additions & 2 deletions UDT_DLL/src/message.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -2175,7 +2175,7 @@ bool udtMessage::RealReadDeltaPlayer(const idPlayerStateBase* from, idPlayerStat
if(ReadBit())
{
bits = ReadShort();
for(int i = 0; i < 16; i++)
for(i = 0; i < 16; i++)
{
if(bits & (1 << i))
{
Expand All @@ -2191,7 +2191,7 @@ bool udtMessage::RealReadDeltaPlayer(const idPlayerStateBase* from, idPlayerStat
if(ReadBit())
{
bits = ReadShort();
for(int i = 0; i < 16; i++)
for(i = 0; i < 16; i++)
{
if(bits & (1 << i))
{
Expand Down

0 comments on commit f9eddde

Please sign in to comment.