From a2df241b284e63c0a67dca4df0400439c121987a Mon Sep 17 00:00:00 2001 From: Stas Sergeev Date: Tue, 26 Sep 2006 17:46:57 +0000 Subject: [PATCH] better fix for is_valid() --- src/sst.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/sst.h b/src/sst.h index fbaa466..f9676f8 100644 --- a/src/sst.h +++ b/src/sst.h @@ -46,7 +46,7 @@ typedef struct {int x; int y;} coord; #define same(c1, c2) ((c1.x == c2.x) && (c1.y == c2.y)) #define distance(c1, c2) sqrt(square(c1.x - c2.x) + square(c1.y - c2.y)) #define invalidate(w) w.x = w.y = 0 -#define is_valid(w) (w.x != 0 || w.y != 0) +#define is_valid(w) (w.x != 0 && w.y != 0) typedef struct { coord w; -- 2.31.1