Replace 0 by 0.0 for double value comparison. This is nicer.

This commit is contained in:
Mario Hüttel 2019-08-20 22:42:44 +02:00
parent 85f037ce59
commit 4b238c55ea

View File

@ -33,7 +33,7 @@
#include <gds-render/geometric/vector-operations.h> #include <gds-render/geometric/vector-operations.h>
#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) double vector_2d_scalar_multipy(struct vector_2d *a, struct vector_2d *b)
{ {