Improved code [skip ci]

This commit is contained in:
Andrew Kane committed 2024-09-19 19:57:16 -07:00
1 parent b0da2d95d9
commit aa77346103
1 file changed
+1 -1
+1 -1
View File
@@ -709,7 +709,7 @@ array_to_sparsevec(PG_FUNCTION_ARGS)
#ifdef _MSC_VER
/* /fp:fast may not propagate +/-Infinity or NaN */
#define IS_NOT_ZERO(v) (isnan((float) v) || isinf((float) v) || ((float) v) != 0)
#define IS_NOT_ZERO(v) (isnan((float) (v)) || isinf((float) (v)) || ((float) (v)) != 0)
#else
#define IS_NOT_ZERO(v) (((float) (v)) != 0)
#endif