Skip to content

Commit

Permalink
latest from coda-oss
Browse files Browse the repository at this point in the history
  • Loading branch information
Dan Smith authored and Dan Smith committed Jun 13, 2023
1 parent 471fb3f commit 18be358
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 4 deletions.
2 changes: 1 addition & 1 deletion externals/coda-oss/modules/c++/sio.lite/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ set(MODULE_NAME sio.lite)
coda_add_module(
${MODULE_NAME}
VERSION 1.0
DEPS io-c++ types-c++)
DEPS sys-c++ io-c++ types-c++)

coda_add_tests(
MODULE_NAME ${MODULE_NAME}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -36,6 +36,7 @@
#include <sio/lite/FileHeader.h>
#include <sio/lite/ElementType.h>
#include <sys/filesystem.h>
#include <sys/Span.h>

namespace sio
{
Expand Down Expand Up @@ -70,7 +71,7 @@ void readSIO(const std::string& pathname,
reader.read(image.get(), numPixels * sizeof(InputT), true);
}
template <typename InputT>
void readSIO(const sys::filesystem::path& pathname,
void readSIO(const coda_oss::filesystem::path& pathname,
types::RowCol<size_t>& dims,
std::vector<InputT>& image)
{
Expand All @@ -86,7 +87,7 @@ void readSIO(const sys::filesystem::path& pathname,
}

image.resize(dims.area());
reader.read(coda_oss::span<InputT>(image.data(), image.size()), true /*verifyFullRead*/);
reader.read(sys::make_span(image), true /*verifyFullRead*/);
}

/*
Expand Down
2 changes: 1 addition & 1 deletion externals/coda-oss/modules/c++/sio.lite/wscript
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
NAME = 'sio.lite'
VERSION = '1.0'
MODULE_DEPS = 'io types'
MODULE_DEPS = 'sys io types'

options = configure = distclean = lambda p: None

Expand Down

0 comments on commit 18be358

Please sign in to comment.