mirror of
https://github.com/pgvector/pgvector.git
synced 2026-07-05 20:20:59 +08:00
Improved code [skip ci]
This commit is contained in:
@@ -709,7 +709,7 @@ array_to_sparsevec(PG_FUNCTION_ARGS)
|
|||||||
|
|
||||||
#ifdef _MSC_VER
|
#ifdef _MSC_VER
|
||||||
/* /fp:fast may not propagate +/-Infinity or NaN */
|
/* /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
|
#else
|
||||||
#define IS_NOT_ZERO(v) (((float) (v)) != 0)
|
#define IS_NOT_ZERO(v) (((float) (v)) != 0)
|
||||||
#endif
|
#endif
|
||||||
|
|||||||
Reference in New Issue
Block a user