Index: /trunk/BNC/GPSS/gpssDecoder.cpp
===================================================================
--- /trunk/BNC/GPSS/gpssDecoder.cpp	(revision 1434)
+++ /trunk/BNC/GPSS/gpssDecoder.cpp	(revision 1435)
@@ -41,5 +41,5 @@
 // Cyclic Redundancy Check
 ////////////////////////////////////////////////////////////////////////////
-unsigned short cal_crc(char *buf, int num) {
+unsigned short cal_crc(unsigned char *buf, int num) {
   unsigned short polynomial = 0x8408;
   unsigned short crc = 0;
@@ -109,5 +109,5 @@
                          epochHdr.n_svs * sizeof(t_obsInternal);
           memcpy(&crc, _buffer.data() + checkLen, sizeof(crc));
-          int crdCal = cal_crc(_buffer.data(), checkLen);
+          int crdCal = cal_crc((unsigned char*) _buffer.data(), checkLen);
 
           cout << "Obs: " << crc << " " << crdCal << endl;
@@ -135,7 +135,7 @@
         int checkLen = 2 + sizeof(recordSize) + sizeof(gpsephemeris);
         memcpy(&crc, _buffer.data() + checkLen, sizeof(crc));
-        int crdCal = cal_crc(_buffer.data(), checkLen);
+        int crdCal = cal_crc((unsigned char*) _buffer.data(), checkLen);
 
-        cout << "Obs: " << crc << " " << crdCal << endl;
+        cout << "Eph: " << crc << " " << crdCal << endl;
 
         gpsephemeris* gpsEph = new gpsephemeris;
