Skip to content

Commit

Permalink
moving things around, stoi-> stoull
Browse files Browse the repository at this point in the history
  • Loading branch information
Hugoberry committed Mar 29, 2024
1 parent c20b24c commit 92c0ae4
Show file tree
Hide file tree
Showing 12 changed files with 5 additions and 7 deletions.
5 changes: 1 addition & 4 deletions CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -13,12 +13,9 @@ find_package(tinyxml2 REQUIRED)
find_package(unofficial-sqlite3 REQUIRED)
find_package(Crc32c REQUIRED)
# find_package(kaitai-struct-cpp-stl-runtime REQUIRED)
if(NOT Crc32c_FOUND)
message(FATAL_ERROR "Crc32c not found")
endif()

find_package(Threads REQUIRED)

find_package(Threads REQUIRED)


set(EXTENSION_NAME ${TARGET_NAME}_extension)
Expand Down
3 changes: 2 additions & 1 deletion Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,8 @@ EXT_CONFIG=${PROJ_DIR}extension_config.cmake

# Setting CMAKE_PREFIX_PATH environment variable
# export CMAKE_PREFIX_PATH := vcpkg_installed/x64-linux:${CMAKE_PREFIX_PATH}
# export CMAKE_PREFIX_PATH := vcpkg_installed/x64-linux/share/unofficial-sqlite3:${CMAKE_PREFIX_PATH}
# export CMAKE_PREFIX_PATH := vcpkg_installed/x64-linux/share/kaitai-struct-cpp-stl-runtime:${CMAKE_PREFIX_PATH}
# export kaitai-struct-cpp-stl-runtime_DIR := /workspaces/duckdb-pbix-extension/build/release/vcpkg_installed/x64-linux/share/kaitai-struct-cpp-stl-runtime

VCPKG_TOOLCHAIN_FILE=/workspaces/duckdb-pbix-extension/vcpkg/scripts/buildsystems/vcpkg.cmake

Expand Down
2 changes: 1 addition & 1 deletion src/abf/BackupFile.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ BackupFile BackupFile::from_value(tinyxml2::XMLElement& element, const std::stri
}
XMLElement* offsetHeaderElement = element.FirstChildElement("m_cbOffsetHeader");
if (offsetHeaderElement && offsetHeaderElement->GetText()) {
file.m_cbOffsetHeader = std::stoi(offsetHeaderElement->GetText());
file.m_cbOffsetHeader = std::stoull(offsetHeaderElement->GetText());
}
XMLElement* deleteElement = element.FirstChildElement("Delete");
if (deleteElement && deleteElement->GetText()) {
Expand Down
2 changes: 1 addition & 1 deletion src/abf/BackupFile.h
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ class BackupFile {
public:
std::optional<std::string> Path;
int Size;
int m_cbOffsetHeader;
uint64_t m_cbOffsetHeader;
bool Delete;
int64_t CreatedTimestamp;
int64_t Access;
Expand Down
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.

0 comments on commit 92c0ae4

Please sign in to comment.