aboutsummaryrefslogtreecommitdiff
path: root/src/PJ_igh.c
diff options
context:
space:
mode:
authorFrank Warmerdam <warmerdam@pobox.com>2011-05-10 01:32:08 +0000
committerFrank Warmerdam <warmerdam@pobox.com>2011-05-10 01:32:08 +0000
commit6d16e577e73d94a8ec98e1b62b4dbe23d30fbb21 (patch)
tree328347376f77240f5d6e209a9130c055515a4ab7 /src/PJ_igh.c
parentf7bb18dd65b3ca478b66bc3f26de93c650c45303 (diff)
downloadPROJ-6d16e577e73d94a8ec98e1b62b4dbe23d30fbb21.tar.gz
PROJ-6d16e577e73d94a8ec98e1b62b4dbe23d30fbb21.zip
fix up builds on windows
git-svn-id: http://svn.osgeo.org/metacrs/proj/trunk@1999 4e78687f-474d-0410-85f9-8d5e500ac6b2
Diffstat (limited to 'src/PJ_igh.c')
-rw-r--r--src/PJ_igh.c6
1 files changed, 4 insertions, 2 deletions
diff --git a/src/PJ_igh.c b/src/PJ_igh.c
index 40a6f89c..6f8b6c40 100644
--- a/src/PJ_igh.c
+++ b/src/PJ_igh.c
@@ -77,12 +77,13 @@ INVERSE(s_inverse); /* spheroid */
if (z)
{
+ int ok = 0;
+
xy.x -= P->pj[z-1]->x0;
xy.y -= P->pj[z-1]->y0;
lp = P->pj[z-1]->inv(xy, P->pj[z-1]);
lp.lam += P->pj[z-1]->lam0;
- int ok = 0;
switch (z) {
case 1: ok = (lp.lam >= -d180-EPSLN && lp.lam <= -d40+EPSLN) ||
((lp.lam >= -d40-EPSLN && lp.lam <= -d10+EPSLN) &&
@@ -111,8 +112,9 @@ INVERSE(s_inverse); /* spheroid */
if (!z) lp.phi = HUGE_VAL;
return (lp);
}
-FREEUP; int i;
+FREEUP;
if (P) {
+ int i;
for (i = 0; i < 12; ++i)
if (P->pj[i]) free(P->pj[i]);
free(P);