Browse Source

removed overflow with borg dimensions > 128 pixels

feature/2015
Christian Kroll 14 years ago
parent
commit
d09736355f
  1. 2
      animations/gameoflife.c

2
animations/gameoflife.c

@ -24,7 +24,7 @@
#define YSIZE UNUM_ROWS #define YSIZE UNUM_ROWS
// optimizing for 8 bit archs while retaining compatibility with dimensions >255 // optimizing for 8 bit archs while retaining compatibility with dimensions >255
#if UNUM_COLS < 256 && UNUM_ROWS < 256 #if UNUM_COLS < 128 && UNUM_ROWS < 128
typedef uint8_t coord_t; typedef uint8_t coord_t;
#else #else
typedef unsigned int coord_t; typedef unsigned int coord_t;

Loading…
Cancel
Save