From 7e51e4cb84aeb3c191289752e0e6b92facd8f7f6 Mon Sep 17 00:00:00 2001 From: Aaron Franke Date: Tue, 7 Sep 2021 23:25:35 -0500 Subject: Fix some LGTM errors of "Multiplication result converted to larger type" --- core/io/file_access_compressed.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'core/io/file_access_compressed.cpp') diff --git a/core/io/file_access_compressed.cpp b/core/io/file_access_compressed.cpp index e54c947340..df631053b8 100644 --- a/core/io/file_access_compressed.cpp +++ b/core/io/file_access_compressed.cpp @@ -233,7 +233,7 @@ uint64_t FileAccessCompressed::get_position() const { if (writing) { return write_pos; } else { - return read_block * block_size + read_pos; + return (uint64_t)read_block * block_size + read_pos; } } -- cgit v1.2.3