mirror of
https://github.com/pgvector/pgvector.git
synced 2026-06-29 17:21:16 +08:00
Improved code [skip ci]
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user