Skip to content

Commit 102b3ae

Browse files
[pre-commit.ci] auto fixes from pre-commit.com hooks
for more information, see https://pre-commit.ci
1 parent 6900e6d commit 102b3ae

File tree

2 files changed

+5
-6
lines changed

2 files changed

+5
-6
lines changed

src/IO/ADIOS/ADIOS2IOHandler.cpp

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1809,10 +1809,10 @@ namespace detail
18091809
throw std::runtime_error("[ADIOS2] Expecting 1D ADIOS variable");
18101810
}
18111811

1812-
std::vector<T> res(attr.shape[0]);
1813-
std::copy_n(attr.data, attr.shape[0], res.data());
1814-
*resource = std::move(res);
1815-
return determineDatatype<std::vector<T>>();
1812+
std::vector<T> res(attr.shape[0]);
1813+
std::copy_n(attr.data, attr.shape[0], res.data());
1814+
*resource = std::move(res);
1815+
return determineDatatype<std::vector<T>>();
18161816
}
18171817

18181818
void AttributeTypes<std::vector<std::string>>::createAttribute(

test/SerialIOTest.cpp

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1270,8 +1270,7 @@ inline void dtype_test(const std::string &backend)
12701270
"vecInt64",
12711271
std::vector<int64_t>({9223372036854775806, 9223372036854775807}));
12721272
s.setAttribute(
1273-
"vecUchar",
1274-
std::vector<unsigned char>({'u', 'c', 'h', 'a', 'r'}));
1273+
"vecUchar", std::vector<unsigned char>({'u', 'c', 'h', 'a', 'r'}));
12751274
s.setAttribute(
12761275
"vecSchar", std::vector<signed char>({'s', 'c', 'h', 'a', 'r'}));
12771276
s.setAttribute("vecUint16", std::vector<uint16_t>({65534u, 65535u}));

0 commit comments

Comments
 (0)