mirror of
https://github.com/pgvector/pgvector.git
synced 2026-07-11 15:16:54 +08:00
Fixed code [skip ci]
This commit is contained in:
@@ -114,7 +114,7 @@ Float4ToFp8Unchecked(float num)
|
|||||||
exponent += 1;
|
exponent += 1;
|
||||||
}
|
}
|
||||||
|
|
||||||
if (exponent > 7)
|
if (exponent > 8)
|
||||||
{
|
{
|
||||||
/* Infinite, which is NaN */
|
/* Infinite, which is NaN */
|
||||||
result |= 0x7F;
|
result |= 0x7F;
|
||||||
|
|||||||
Reference in New Issue
Block a user