mirror of
https://git.postgresql.org/git/postgresql.git
synced 2026-02-15 10:57:02 +08:00
Here is a bug fix and some spelling changes for the complex number tutorial
code. I have also written a complete complex number package based on this tutorial; I will submit this as a contribution soon. Is there a particular format for contributed tar files? I have a C source file, two SQL files, and a Makefile. Thomas Lockhart
This commit is contained in:
@ -113,9 +113,9 @@ int4
|
||||
complex_abs_cmp(Complex *a, Complex *b)
|
||||
{
|
||||
double amag = Mag(a), bmag = Mag(b);
|
||||
if (a < b)
|
||||
if (amag < bmag)
|
||||
return -1;
|
||||
else if (a > b)
|
||||
else if (amag > bmag)
|
||||
return 1;
|
||||
else
|
||||
return 0;
|
||||
|
||||
Reference in New Issue
Block a user