Skip to content

Commit

Permalink
bugfix: wrong unary minum of float2
Browse files Browse the repository at this point in the history
reported at #670
  • Loading branch information
kaigai committed Nov 12, 2023
1 parent 6085122 commit 216a319
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/float2.c
Original file line number Diff line number Diff line change
Expand Up @@ -759,7 +759,7 @@ pgstrom_float2um(PG_FUNCTION_ARGS)
#ifndef EMULATE_FLOAT2
fval = -fval;
#else
fval ^= ~0x8000;
fval ^= 0x8000;
#endif
PG_RETURN_FP16(fval);
}
Expand Down

0 comments on commit 216a319

Please sign in to comment.