diff options
author | Salvador Cuñat <salvador.cunat@gmail.com> | 2020-08-29 07:48:43 +0200 |
---|---|---|
committer | Dirk Hohndel <dirk@hohndel.org> | 2020-09-03 11:38:13 -0700 |
commit | 80ff0925332d9d53f36aaa099e50969bd7bc32a4 (patch) | |
tree | 50080d75317ac784ba34250bcb57a3021fdc2fb0 /core/datatrak.c | |
parent | c888a1727e250c27a8d494dac7d340c8b7475867 (diff) | |
download | subsurface-80ff0925332d9d53f36aaa099e50969bd7bc32a4.tar.gz |
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>
Diffstat (limited to 'core/datatrak.c')
-rw-r--r-- | core/datatrak.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/core/datatrak.c b/core/datatrak.c index 60454ccf4..c7f70a9ed 100644 --- a/core/datatrak.c +++ b/core/datatrak.c @@ -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; |