Skip to content

Commit

Permalink
Fix compiler warning: integer expressions of different signedness
Browse files Browse the repository at this point in the history
Signed-off-by: Steffen Pankratz <[email protected]>
  • Loading branch information
kratz00 committed Jan 23, 2023
1 parent 1a8a375 commit 587b4b4
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion PuyoGame.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@ PuyoRandomSystem::PuyoRandomSystem()
srandom(SDL_GetTicks());
}

PuyoState PuyoRandomSystem::getPuyoForSequence(int sequence)
PuyoState PuyoRandomSystem::getPuyoForSequence(unsigned int sequence)
{
if (sequenceItems.size() <= sequence) {
PuyoState newItem = static_cast<PuyoState>((random() % 5) + PUYO_FALLINGBLUE);
Expand Down
4 changes: 2 additions & 2 deletions PuyoGame.h
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ enum PuyoState {
class PuyoRandomSystem {
public:
PuyoRandomSystem();
PuyoState getPuyoForSequence(int sequence);
PuyoState getPuyoForSequence(unsigned int sequence);
private:
std::vector<PuyoState> sequenceItems;
};
Expand Down Expand Up @@ -163,7 +163,7 @@ class PuyoGame {

PuyoPuyo *puyoCells[PUYODIMX * (PUYODIMY+1)];
PuyoRandomSystem *attachedRandom;
int sequenceNr;
unsigned int sequenceNr;
int neutralPuyos;
PuyoDelegate *delegate;
PuyoFactory *attachedFactory;
Expand Down
2 changes: 1 addition & 1 deletion glSDL.c
Original file line number Diff line number Diff line change
Expand Up @@ -973,7 +973,7 @@ static __inline__ void gl_blendfunc(GLenum sfactor, GLenum dfactor)
glstate.dfactor = dfactor;
}

static __inline__ void gl_texture(GLuint tx)
static __inline__ void gl_texture(GLint tx)
{
if(tx == glstate.texture)
return;
Expand Down

0 comments on commit 587b4b4

Please sign in to comment.