From 07bb46070721a277c001406ec7b81ee96473ff01 Mon Sep 17 00:00:00 2001 From: "Mr.Chip" Date: Mon, 23 Sep 2024 10:32:11 +0800 Subject: [PATCH] fix large file address seeking issue change std::strtoul to std::strtoull, to support file larger than 4GB --- opentims++/opentims.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/opentims++/opentims.cpp b/opentims++/opentims.cpp index 4842254..198f064 100644 --- a/opentims++/opentims.cpp +++ b/opentims++/opentims.cpp @@ -84,7 +84,7 @@ TimsFrame TimsFrame::TimsFrameFromSql(char** sql_row, TimsDataHandle& parent_han atol(sql_row[3]), 100.0 / atof(sql_row[4]), atof(sql_row[5]), - std::strtoul(sql_row[6], nullptr, 10) + parent_handle.tims_data_bin.data(), + std::strtoull(sql_row[6], nullptr, 10) + parent_handle.tims_data_bin.data(), parent_handle ); }