From 940882d743b7e6afea97352d6fdfaf8ec8e433d6 Mon Sep 17 00:00:00 2001 From: Xavier Del Campo Romero Date: Sat, 27 Jan 2024 13:55:51 +0100 Subject: Replace "unsigned int" with "unsigned" --- src/camera/inc/camera.h | 4 ++-- src/camera/src/camera.c | 2 +- src/gfx/ps1/src/heap.c | 2 +- src/gfx/ps1/src/sort.c | 2 +- src/peripheral/inc/peripheral.h | 2 +- src/player/inc/player.h | 2 +- 6 files changed, 7 insertions(+), 7 deletions(-) (limited to 'src') diff --git a/src/camera/inc/camera.h b/src/camera/inc/camera.h index a108c98..27efe2e 100644 --- a/src/camera/inc/camera.h +++ b/src/camera/inc/camera.h @@ -19,12 +19,12 @@ struct camera } dim; int x, y, x_speed, y_speed; - unsigned int xt, yt; + unsigned xt, yt; bool pan; struct cursor { - unsigned int x, y, x_init, y_init; + unsigned x, y, x_init, y_init; enum { CURSOR_STATE_IDLE, diff --git a/src/camera/src/camera.c b/src/camera/src/camera.c index 223c235..81053fd 100644 --- a/src/camera/src/camera.c +++ b/src/camera/src/camera.c @@ -63,7 +63,7 @@ int cursor_render(const struct cursor *const c) void cursor_init(struct cursor *const c) { - const unsigned int x = (screen_w / 2) - CAMERA_CURSOR_WIDTH, + const unsigned x = (screen_w / 2) - CAMERA_CURSOR_WIDTH, y = (screen_h / 2) - CAMERA_CURSOR_HEIGHT; *c = (const struct cursor) diff --git a/src/gfx/ps1/src/heap.c b/src/gfx/ps1/src/heap.c index 5ef8b80..56d6b0b 100644 --- a/src/gfx/ps1/src/heap.c +++ b/src/gfx/ps1/src/heap.c @@ -2,7 +2,7 @@ #include #include -static unsigned int sel; +static unsigned sel; static size_t heap_i; void gfx_swapheap(void) diff --git a/src/gfx/ps1/src/sort.c b/src/gfx/ps1/src/sort.c index 3f2314a..c517b89 100644 --- a/src/gfx/ps1/src/sort.c +++ b/src/gfx/ps1/src/sort.c @@ -61,7 +61,7 @@ int gfx_draw(void) add_to_list(&term); - void gpu_ctrl(unsigned int command, unsigned int param); + void gpu_ctrl(unsigned command, unsigned param); gfx_sync(); gfx_swapbuffers(); diff --git a/src/peripheral/inc/peripheral.h b/src/peripheral/inc/peripheral.h index 2895f54..b686eba 100644 --- a/src/peripheral/inc/peripheral.h +++ b/src/peripheral/inc/peripheral.h @@ -40,7 +40,7 @@ union peripheral struct mouse mouse; struct keyboard keyboard; bool long_press; - unsigned int lp_t; + unsigned lp_t; } kbm; }; diff --git a/src/player/inc/player.h b/src/player/inc/player.h index 10557b3..cc191ca 100644 --- a/src/player/inc/player.h +++ b/src/player/inc/player.h @@ -14,7 +14,7 @@ extern "C" { #endif -typedef unsigned int player_team; +typedef unsigned player_team; enum { -- cgit v1.2.3