aboutsummaryrefslogtreecommitdiffstats
path: root/xcb_gol_macro.c
diff options
context:
space:
mode:
Diffstat (limited to 'xcb_gol_macro.c')
-rw-r--r--xcb_gol_macro.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/xcb_gol_macro.c b/xcb_gol_macro.c
index daab30b..6e04b77 100644
--- a/xcb_gol_macro.c
+++ b/xcb_gol_macro.c
@@ -61,7 +61,7 @@ void gol_random(Gol *const gol, unsigned const int seed)
gol->buffers[gol->front][i] = rand() < 0.5 * ((double)RAND_MAX + 1.0);
}
-static uint8_t gol_neighbours(Gol *const gol, const uint32_t x, const uint32_t y)
+static uint8_t gol_neighbours(Gol *const gol, const int32_t x, const int32_t y)
{
uint8_t neighbours = 0;
for (int8_t dx = -1; dx <= 1; dx++)