Commit e74998e9 authored by thomas.forbriger's avatar thomas.forbriger

libdatrwxx [FIX]: mseed usec field can be negative

field 4 (usec) of [1001] Data Extension Blockette explicitly is signed an can
be negative (see SEED V2.4 Manual, August 2012, page 124)
parent 5b317b8e
......@@ -32,6 +32,11 @@
* implementation dependent size
* - 09/05/2006 V1.2 introduced Steim 2 code
* SteimFrame now does all that Steim1Reader did
* - 12/07/2016 V1.3 thof:
* - fix [1001] Data Extension Blockette
* field 4 (usec) explicitely is signed an can be
* negative (see SEED V2.4 Manual, August 2012, page
* 124)
*
* ============================================================================
*/
......@@ -40,7 +45,7 @@
#ifndef DATRW_SEEDSTRUCTS_H_VERSION
#define DATRW_SEEDSTRUCTS_H_VERSION \
"DATRW_SEEDSTRUCTS_H V1.2"
"DATRW_SEEDSTRUCTS_H V1.3"
namespace datrw {
......@@ -373,10 +378,10 @@ namespace datrw {
void swap();
DataRecordBlocketteHeader blocketteheader;
unsigned char tquality; //!< Timing quality
unsigned char usec; //!< microseconds
char usec; //!< microseconds
unsigned char reserved; //!< reserved
unsigned char fcount; //!< frame count
unsigned int iusec() const { return(this->usec); }
int iusec() const { return(this->usec); }
unsigned int itquality() const { return(this->tquality); }
unsigned int ifcount() const { return(this->fcount); }
}; // DataExtensionBlockette
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment