From 3420e2383336b5277f43e4ed631bedf44339b804 Mon Sep 17 00:00:00 2001 From: ehofman Date: Sun, 7 Nov 2004 14:23:48 +0000 Subject: [PATCH] MSVC fix. --- src/Instrumentation/encoder.cxx | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/Instrumentation/encoder.cxx b/src/Instrumentation/encoder.cxx index 725daa799..0c1517aec 100644 --- a/src/Instrumentation/encoder.cxx +++ b/src/Instrumentation/encoder.cxx @@ -67,10 +67,10 @@ Encoder::Encoder(SGPropertyNode *node) num(0), staticPort("/systems/static") { - for (int i = 0; altitude_data[i][0] != -1; i++) + int i; + for ( i = 0; altitude_data[i][0] != -1; i++ ) altitudeTable->addEntry(altitude_data[i][0], altitude_data[i][1]); - int i; for ( i = 0; i < node->nChildren(); ++i ) { SGPropertyNode *child = node->getChild(i); string cname = child->getName(); -- 2.39.5