Skip to content

Commit 9ca99bb

Browse files
committed
Fix undefined symbols for MacOS
1 parent 9aef365 commit 9ca99bb

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

spatial/src/spatial/gdal/functions/st_write_raster.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -141,7 +141,7 @@ static void Sink(ExecutionContext &context, FunctionData &bdata, GlobalFunctionD
141141

142142
if (type == core::GeoTypes::RASTER()) {
143143
auto value = input.GetValue(col_idx, row_idx);
144-
GDALDataset *dataset = reinterpret_cast<GDALDataset *>(value.GetValueUnsafe<uintptr_t>());
144+
GDALDataset *dataset = reinterpret_cast<GDALDataset *>(value.GetValueUnsafe<uint64_t>());
145145

146146
auto raw_file_name = bind_data.file_path;
147147
auto &client_ctx = GDALClientContextState::GetOrCreate(context.client);

spatial/src/spatial/gdal/raster/raster_value.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -15,12 +15,12 @@ Value RasterValue::CreateValue(GDALDataset *dataset) {
1515
}
1616

1717
GDALDataset *RasterValue::operator->() const {
18-
GDALDataset *dataset = reinterpret_cast<GDALDataset *>(GetValueUnsafe<uintptr_t>());
18+
GDALDataset *dataset = reinterpret_cast<GDALDataset *>(GetValueUnsafe<uint64_t>());
1919
return dataset;
2020
}
2121

2222
GDALDataset *RasterValue::get() const {
23-
GDALDataset *dataset = reinterpret_cast<GDALDataset *>(GetValueUnsafe<uintptr_t>());
23+
GDALDataset *dataset = reinterpret_cast<GDALDataset *>(GetValueUnsafe<uint64_t>());
2424
return dataset;
2525
}
2626

0 commit comments

Comments
 (0)