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:
Bruce Momjian
1996-12-28 02:22:12 +00:00
parent cb6cb7745d
commit 221d7296aa
2 changed files with 10 additions and 9 deletions

View File

@ -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;