Index: trunk/BNC/RTCM/GPSDecoder.h
===================================================================
--- trunk/BNC/RTCM/GPSDecoder.h	(revision 214)
+++ trunk/BNC/RTCM/GPSDecoder.h	(revision 215)
@@ -1,5 +1,5 @@
 // -*- C++ -*-
 //
-// $Id: GPSDecoder.h,v 1.1.1.1 2006/05/30 11:05:27 mervart Exp $
+// $Id: GPSDecoder.h,v 1.2 2006/10/06 10:51:43 mervart Exp $
 // 2005/04/11: include 'int iPCode' into class 'GPSDecoder' (BKG)
 #if !defined(__GPSDecoder_h__)
@@ -42,5 +42,5 @@
 		,short _SNR2
 		,int _pCodeIndicator
-		,u_int _cumuLossOfCont)
+		,unsigned _cumuLossOfCont)
     :SVPRN(_svprn)
     ,GPSWeek(_GPSWeek)
@@ -69,5 +69,5 @@
     short SNR2;    //<  signal-to noise ration (0.1 dB)
     int   pCodeIndicator;  // 0 ... CA Code, 1 ... P Code
-    u_int cumuLossOfCont;  // 0 to 31
+    unsigned cumuLossOfCont;  // 0 to 31
 } ;
 
Index: trunk/BNC/RTCM/RTCM2.cpp
===================================================================
--- trunk/BNC/RTCM/RTCM2.cpp	(revision 214)
+++ trunk/BNC/RTCM/RTCM2.cpp	(revision 215)
@@ -1061,8 +1061,4 @@
   _buffer.append(buffer, bufLen);
 
-  int    refWeek;
-  double refSecs;
-  gpsWeekAndSec(refWeek, refSecs);
-
   while(true) {
     _PP.getPacket(_buffer);
@@ -1070,4 +1066,9 @@
 
     if ( _PP.ID()==18 || _PP.ID()==19 ) {   
+
+      int    refWeek;
+      double refSecs;
+      gpsWeekAndSec(refWeek, refSecs);
+
       _ObsBlock.extract(_PP);
       if (!_ObsBlock.valid()) continue;
