Skip to content

Commit

Permalink
Fixing compilation warning
Browse files Browse the repository at this point in the history
  • Loading branch information
bombomby committed Aug 5, 2020
1 parent 362d395 commit 20ba9f2
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions samples/Common/TestEngine/TestEngine.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -70,7 +70,7 @@ void SlowFunction()
OPTICK_TAG("Before", value);

for (unsigned long i = 0; i < N; ++i)
value = (value + sin((float)i)) * 0.5f;
value = (value + sinf((float)i)) * 0.5f;

OPTICK_TAG("After", value);
}
Expand Down Expand Up @@ -107,7 +107,7 @@ struct SimpleTask
OPTICK_CATEGORY("BeforeYield", Optick::Category::AI);

for (unsigned long i = 0; i < N; ++i)
value = (value + sin((float)i)) * 0.5f;
value = (value + sinf((float)i)) * 0.5f;
}

ctx.Yield();
Expand All @@ -116,7 +116,7 @@ struct SimpleTask
OPTICK_CATEGORY("AfterYield", Optick::Category::AI);

for (unsigned long i = 0; i < N; ++i)
value = (value + cos((float)i)) * 0.5f;
value = (value + cosf((float)i)) * 0.5f;
}

}
Expand Down Expand Up @@ -155,7 +155,7 @@ struct PriorityTask
{
for (unsigned long i = 0; i < 8192; ++i)
{
value = (value + cos((float)i)) * 0.5f;
value = (value + cosf((float)i)) * 0.5f;
}
}
};
Expand Down

0 comments on commit 20ba9f2

Please sign in to comment.