From a453b617427e30b8511620fd2e1011d58cc1cf7d Mon Sep 17 00:00:00 2001 From: Christian Kroll Date: Thu, 10 Mar 2011 21:21:07 +0000 Subject: [PATCH] using unsigned UNUM_ROWS and UNUM_COLS saves 80 bytes without breaking it --- animations/gameoflife.c | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/animations/gameoflife.c b/animations/gameoflife.c index 81e34cf..53427b2 100644 --- a/animations/gameoflife.c +++ b/animations/gameoflife.c @@ -20,16 +20,16 @@ #undef DEBUG -#define XSIZE NUM_COLS -#define YSIZE NUM_ROWS +#define XSIZE UNUM_COLS +#define YSIZE UNUM_ROWS /* * last line is for debug information */ #ifdef DEBUG #undef YSIZE - #define YSIZE (NUM_ROWS-1) - #define DEBUG_ROW (NUM_ROWS-1) + #define YSIZE (UNUM_ROWS-1) + #define DEBUG_ROW (UNUM_ROWS-1) #define DEBUG_BIT(pos, val) \ setpixel((pixel){(pos)%XSIZE,DEBUG_ROW+(pos)/XSIZE},(val)?3:0) #define DEBUG_BYTE(s,v) \