Skip to content
Permalink
Browse files

fixed compile error pointed out by adamConnerSax

  • Loading branch information
ubauer committed Jan 10, 2020
1 parent 47458ee commit 67cfa5f488dede857f73059e737cdaea0dedd9b5
Showing with 1 addition and 1 deletion.
  1. +1 −1 ripser.cpp
@@ -836,7 +836,7 @@ static const bool is_big_endian = *reinterpret_cast<const uint8_t*>(&endian_chec
template <typename T> T read(std::istream& input_stream) {
T result;
char* p = reinterpret_cast<char*>(&result);
if (input_stream.read(p, sizeof(T)) != sizeof(T) return T();
if (input_stream.read(p, sizeof(T)).gcount() != sizeof(T)) return T();
if (is_big_endian) std::reverse(p, p + sizeof(T));
return result;
}

0 comments on commit 67cfa5f

Please sign in to comment.
You can’t perform that action at this time.