schwehr / generic-sensor-format

Sonar Generic Sensor Format (gsf) codec
Other
13 stars 8 forks source link

Can we make desiredRecord be unsigned? #19

Open schwehr opened 9 years ago

schwehr commented 9 years ago
#define GSF_NEXT_RECORD 0

typedef struct t_gsfDataID
{
    int             checksumFlag;       /* boolean */
    int             reserved;           /* up to 9 bits */
    unsigned int    recordID;
   /* ... */
}

int gsfRead(int handle, int desiredRecord
static int gsfUnpackStream (int handle, int desiredRecord,

See this short term work around: https://github.com/schwehr/generic-sensor-format/commit/201041b2034214958f05d22574ba25565d7e20de