mirror of
https://github.com/subsurface/subsurface.git
synced 2025-02-01 02:53:24 +00:00
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
1 changed files with 1 additions and 1 deletions
|
@ -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…
Add table
Reference in a new issue