Skip to content

Commit 14a235a

Browse files
lucascolleysteppi
andcommitted
TST: tweak to ptrdiff_t
Co-authored-by: Albert Steppi <[email protected]>
1 parent 7073bb5 commit 14a235a

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

tests/testing_utils.h

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -70,10 +70,10 @@ class TableReader {
7070
V imag;
7171
*stream_ >> real >> imag;
7272
element = U(real, imag);
73-
} else if constexpr (std::is_same_v<U, long>) {
74-
int64_t temp;
75-
*stream_ >> temp;
76-
element = static_cast<U>(temp);
73+
} else if constexpr (std::is_same_v<U, std::ptrdiff_t>) {
74+
std::int64_t val;
75+
*stream_ >> val;
76+
element = static_cast<std::ptrdiff_t>(val);
7777
} else {
7878
*stream_ >> element;
7979
}

0 commit comments

Comments
 (0)