summaryrefslogtreecommitdiffstats
path: root/parse-xml.c
diff options
context:
space:
mode:
Diffstat (limited to 'parse-xml.c')
-rw-r--r--parse-xml.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/parse-xml.c b/parse-xml.c
index 33b4c3ee2..14ece90d9 100644
--- a/parse-xml.c
+++ b/parse-xml.c
@@ -2590,7 +2590,7 @@ int parse_dlf_buffer(unsigned char *buffer, size_t size)
/* Regular sample */
sample_start();
cur_sample->time.seconds = time;
- cur_sample->depth.mm = ((ptr[4] & 0xff) + ((ptr[5] << 8) & 0xff00)) * 10;
+ cur_sample->depth.mm = ((ptr[5] << 8) + ptr[4]) * 10;
sample_end();
break;
case 1: