diff options
author | Simon Rettberg | 2021-04-06 14:43:39 +0200 |
---|---|---|
committer | Simon Rettberg | 2021-04-07 13:38:37 +0200 |
commit | 38886de0c3e9ea5729ef23e4c653fa2822f52e8f (patch) | |
tree | 9b799c8c968a92cc77746a95e0e8bdd90b6b13c3 /hacks/tessellimage.c | |
parent | Maybe not remove, but ... (diff) | |
download | xscreensaver-38886de0c3e9ea5729ef23e4c653fa2822f52e8f.tar.gz xscreensaver-38886de0c3e9ea5729ef23e4c653fa2822f52e8f.tar.xz xscreensaver-38886de0c3e9ea5729ef23e4c653fa2822f52e8f.zip |
Diffstat (limited to 'hacks/tessellimage.c')
-rw-r--r-- | hacks/tessellimage.c | 5 |
1 files changed, 1 insertions, 4 deletions
diff --git a/hacks/tessellimage.c b/hacks/tessellimage.c index 40c5b94..c518e83 100644 --- a/hacks/tessellimage.c +++ b/hacks/tessellimage.c @@ -17,9 +17,6 @@ # include <X11/keysymdef.h> #endif -#undef countof -#define countof(x) (sizeof((x))/sizeof((*x))) - struct state { Display *dpy; Window window; @@ -364,7 +361,7 @@ analyze (struct state *st) for (x = 0; x < st->delta->width; x++) { unsigned long p = XGetPixel (st->delta, x, y); - if (p > sizeof(histo)) abort(); + if (p > countof(histo)) abort(); histo[p]++; } |