datatrak.c - Do not return unsigned negative values
We don't really expect to get Nº of dives greater than the biggest integer value. Signed-off-by: Salvador Cuñat <salvador,cunat@gmail.com> Signed-off-by: Salvador Cuñat <salvador.cunat@gmail.com>
This commit is contained in:
parent
c888a1727e
commit
80ff092533
@ -582,7 +582,7 @@ bail:
|
||||
* Parses the header of the .add file, returns the number of dives in
|
||||
* the archive (must be the same than number of dives in .log file).
|
||||
*/
|
||||
static unsigned int wlog_header_parser (struct memblock *mem)
|
||||
static int wlog_header_parser (struct memblock *mem)
|
||||
{
|
||||
int tmp;
|
||||
unsigned char *runner = (unsigned char *) mem->buffer;
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user