From 1e41cd5dde9905e19d7779eaf907a9b8525ef325 Mon Sep 17 00:00:00 2001 From: Mylloon Date: Tue, 13 Jun 2023 02:37:33 +0200 Subject: [PATCH] arg name --- lib/utils.ml | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/lib/utils.ml b/lib/utils.ml index 3d996d3..5a1fe61 100644 --- a/lib/utils.ml +++ b/lib/utils.ml @@ -27,8 +27,8 @@ let new_buffer size list = buffer ;; -let unpack_short_be reader offset = - let msb = int_of_char (Bytes.get reader offset) in - let lsb = int_of_char (Bytes.get reader (offset + 1)) in +let unpack_short_be data offset = + let msb = int_of_char (Bytes.get data offset) in + let lsb = int_of_char (Bytes.get data (offset + 1)) in (msb lsl 8) + lsb ;;