mirror of https://github.com/axmolengine/axmol.git
In Mac OS X 10.9 and Xcode 5.1, it is a warning "Declaration shadows a local variable" in a new ios/mac project.
This commit is contained in:
parent
8e2bd0d2ee
commit
d82c4bed75
|
@ -241,9 +241,9 @@ ClosestPointsNew(const struct MinkowskiPoint v0, const struct MinkowskiPoint v1)
|
||||||
return points;
|
return points;
|
||||||
} else {
|
} else {
|
||||||
cpFloat d2 = cpvlength(p);
|
cpFloat d2 = cpvlength(p);
|
||||||
cpVect n = cpvmult(p, 1.0f/(d2 + CPFLOAT_MIN));
|
cpVect n2 = cpvmult(p, 1.0f/(d2 + CPFLOAT_MIN));
|
||||||
|
|
||||||
struct ClosestPoints points = {pa, pb, n, d2, id};
|
struct ClosestPoints points = {pa, pb, n2, d2, id};
|
||||||
return points;
|
return points;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue