mirror of
https://gitlab.gnome.org/GNOME/glib.git
synced 2025-08-01 15:03:39 +02:00
gparamspecs: Define G_FLOAT_EPSILON as a float constant
Rather than defining it as a double constant. This introduces no functional changes, but does squash some `-Wfloat-conversion` warnings. Signed-off-by: Philip Withnall <pwithnall@gnome.org> Helps: #3405
This commit is contained in:
@@ -37,7 +37,7 @@
|
||||
#include "gvaluearray.h"
|
||||
|
||||
|
||||
#define G_FLOAT_EPSILON (1e-30)
|
||||
#define G_FLOAT_EPSILON (1e-30f)
|
||||
#define G_DOUBLE_EPSILON (1e-90)
|
||||
|
||||
|
||||
|
Reference in New Issue
Block a user