From 4b238c55ea091e5fd65b3b468b4b87fd76da22b7 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Mario=20H=C3=BCttel?= Date: Tue, 20 Aug 2019 22:42:44 +0200 Subject: [PATCH] Replace 0 by 0.0 for double value comparison. This is nicer. --- geometric/vector-operations.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/geometric/vector-operations.c b/geometric/vector-operations.c index e383cbd..b236c3f 100644 --- a/geometric/vector-operations.c +++ b/geometric/vector-operations.c @@ -33,7 +33,7 @@ #include -#define ABS_DBL(a) ((a) < 0 ? -(a) : (a)) +#define ABS_DBL(a) ((a) < 0.0 ? -(a) : (a)) double vector_2d_scalar_multipy(struct vector_2d *a, struct vector_2d *b) {