fix pedantic warnings

This commit is contained in:
2025-01-24 19:35:13 +01:00
parent ec77c6958f
commit 3190bb4732
12 changed files with 112 additions and 77 deletions

View File

@@ -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);