REVIEWED: Potential code issues reported by CodeQL #3476
This commit is contained in:
parent
ba21b8d274
commit
64d64cc181
12 changed files with 98 additions and 92 deletions
|
@ -75,9 +75,9 @@ int main(void)
|
|||
bool eventRecording = false;
|
||||
bool eventPlaying = false;
|
||||
|
||||
int frameCounter = 0;
|
||||
int playFrameCounter = 0;
|
||||
int currentPlayFrame = 0;
|
||||
unsigned int frameCounter = 0;
|
||||
unsigned int playFrameCounter = 0;
|
||||
unsigned int currentPlayFrame = 0;
|
||||
|
||||
SetTargetFPS(60);
|
||||
//--------------------------------------------------------------------------------------
|
||||
|
|
|
@ -41,7 +41,7 @@ int main(void)
|
|||
|
||||
InitWindow(screenWidth, screenHeight, "raylib [core] example - loading thread");
|
||||
|
||||
pthread_t threadId; // Loading data thread id
|
||||
pthread_t threadId = { 0 }; // Loading data thread id
|
||||
|
||||
enum { STATE_WAITING, STATE_LOADING, STATE_FINISHED } state = STATE_WAITING;
|
||||
int framesCounter = 0;
|
||||
|
|
|
@ -29,7 +29,7 @@ int main(void)
|
|||
|
||||
int randValue = GetRandomValue(-8, 5); // Get a random integer number between -8 and 5 (both included)
|
||||
|
||||
int framesCounter = 0; // Variable used to count frames
|
||||
unsigned int framesCounter = 0; // Variable used to count frames
|
||||
|
||||
SetTargetFPS(60); // Set our game to run at 60 frames-per-second
|
||||
//--------------------------------------------------------------------------------------
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue