diff options
| author | Tomasz Kramkowski <tk@kyriasis.com> | 2014-11-17 17:11:41 +0000 | 
|---|---|---|
| committer | Tomasz Kramkowski <tk@kyriasis.com> | 2014-11-17 17:15:02 +0000 | 
| commit | 7636b3f77215cc422b7dbf1d636269bea4b01726 (patch) | |
| tree | d42a80b356d5771222738fa6783a62d1b91ba85f | |
| parent | 79c5a9551b94c0bdd98dd3b496e9213502e6bd2b (diff) | |
| download | c-stuff-7636b3f77215cc422b7dbf1d636269bea4b01726.tar.gz c-stuff-7636b3f77215cc422b7dbf1d636269bea4b01726.tar.xz c-stuff-7636b3f77215cc422b7dbf1d636269bea4b01726.zip  | |
Fixed wrapping.
| -rw-r--r-- | xcb_gol_macro.c | 2 | 
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++)  | 
