mirror of
https://github.com/thepigeongenerator/tetris_clone.git
synced 2025-12-17 14:05:45 +01:00
fix pedantic warnings
This commit is contained in:
@@ -1,5 +1,6 @@
|
||||
#pragma once
|
||||
#include <SDL2/SDL.h>
|
||||
|
||||
#include <stdint.h>
|
||||
|
||||
#include "../window/colour.h"
|
||||
|
||||
@@ -7,7 +8,7 @@ typedef uint32_t PackedRow;
|
||||
|
||||
// stores the data used in the game
|
||||
#define COLUMNS ((uint8_t)(sizeof(PackedRow) * 8 / 3))
|
||||
#define ROWS ((uint8_t)(COLUMNS * 2))
|
||||
#define ROWS ((uint8_t)(COLUMNS * 2))
|
||||
|
||||
typedef struct {
|
||||
Colour columns[COLUMNS];
|
||||
@@ -18,4 +19,4 @@ typedef struct {
|
||||
} GameData;
|
||||
|
||||
// updates the game's state
|
||||
void game_update(GameData* game_data, const Uint8* keys);
|
||||
void game_update(GameData* game_data, const uint8_t* keys);
|
||||
|
||||
Reference in New Issue
Block a user