1
0
Fork 0

MSVC/MipsPro fix

This commit is contained in:
ehofman 2003-08-24 17:29:10 +00:00
parent d8fcc7232a
commit 23f08fd725

View file

@ -182,10 +182,12 @@ void TGArray::remove_voids( ) {
for ( int pass = 0; pass < 2 && have_void; ++pass ) { for ( int pass = 0; pass < 2 && have_void; ++pass ) {
// attempt to fill in any void data horizontally // attempt to fill in any void data horizontally
for ( int i = 0; i < cols; i++ ) { for ( int i = 0; i < cols; i++ ) {
int j;
// fill in front ways // fill in front ways
last_elev = -32768; last_elev = -32768;
have_void = false; have_void = false;
for ( int j = 0; j < rows; j++ ) { for ( j = 0; j < rows; j++ ) {
if ( in_data[i][j] > -9000 ) { if ( in_data[i][j] > -9000 ) {
last_elev = in_data[i][j]; last_elev = in_data[i][j];
} else if ( last_elev > -9000 ) { } else if ( last_elev > -9000 ) {
@ -197,7 +199,7 @@ void TGArray::remove_voids( ) {
// fill in back ways // fill in back ways
last_elev = -32768; last_elev = -32768;
have_void = false; have_void = false;
for ( int j = rows - 1; j >= 0; j-- ) { for ( j = rows - 1; j >= 0; j-- ) {
if ( in_data[i][j] > -9000 ) { if ( in_data[i][j] > -9000 ) {
last_elev = in_data[i][j]; last_elev = in_data[i][j];
} else if ( last_elev > -9000 ) { } else if ( last_elev > -9000 ) {
@ -210,10 +212,12 @@ void TGArray::remove_voids( ) {
// attempt to fill in any void data vertically // attempt to fill in any void data vertically
for ( int j = 0; j < rows; j++ ) { for ( int j = 0; j < rows; j++ ) {
int i;
// fill in front ways // fill in front ways
last_elev = -32768; last_elev = -32768;
have_void = false; have_void = false;
for ( int i = 0; i < cols; i++ ) { for ( i = 0; i < cols; i++ ) {
if ( in_data[i][j] > -9999 ) { if ( in_data[i][j] > -9999 ) {
last_elev = in_data[i][j]; last_elev = in_data[i][j];
} else if ( last_elev > -9999 ) { } else if ( last_elev > -9999 ) {
@ -226,7 +230,7 @@ void TGArray::remove_voids( ) {
// fill in back ways // fill in back ways
last_elev = -32768; last_elev = -32768;
have_void = false; have_void = false;
for ( int i = cols - 1; i >= 0; i-- ) { for ( i = cols - 1; i >= 0; i-- ) {
if ( in_data[i][j] > -9999 ) { if ( in_data[i][j] > -9999 ) {
last_elev = in_data[i][j]; last_elev = in_data[i][j];
} else if ( last_elev > -9999 ) { } else if ( last_elev > -9999 ) {