Staging
v0.8.1
v0.8.1
Revision b1d70432909818983b59de1245562cb89040e7ce authored by Andrew M. Kuchling on 03 October 2006, 18:52:07 UTC, committed by Andrew M. Kuchling on 03 October 2006, 18:52:07 UTC
Move the initialization of size_a down below the check for a being NULL. Reported by Klocwork #106. [Slight change required: in 2.5 Py_ssize_t is used, but 2.4 uses int.]
1 parent 5cf2fb9
hypot.c
/* hypot() replacement */
#include "pyconfig.h"
#include "pyport.h"
double hypot(double x, double y)
{
double yx;
x = fabs(x);
y = fabs(y);
if (x < y) {
double temp = x;
x = y;
y = temp;
}
if (x == 0.)
return 0.;
else {
yx = y/x;
return x*sqrt(1.+yx*yx);
}
}
Computing file changes ...