Skip to content

Commit

Permalink
fix compiler errors
Browse files Browse the repository at this point in the history
  • Loading branch information
farindk committed Oct 15, 2024
1 parent 7672c11 commit 990fdc9
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion libheif/bitstream.cc
Original file line number Diff line number Diff line change
Expand Up @@ -758,7 +758,7 @@ void StreamWriter::write64(uint64_t v)
}


void StreamWriter::write64(int64_t v)
void StreamWriter::write64s(int64_t v)
{
write64(reinterpret_cast<uint64_t&>(v));
}
Expand Down
2 changes: 1 addition & 1 deletion libheif/bitstream.h
Original file line number Diff line number Diff line change
Expand Up @@ -442,7 +442,7 @@ class StreamWriter

void write_float32(float);

void write64(int64_t);
void write64s(int64_t);

void write(int size, uint64_t value);

Expand Down
2 changes: 1 addition & 1 deletion tests/bitstream_tests.cc
Original file line number Diff line number Diff line change
Expand Up @@ -81,6 +81,6 @@ TEST_CASE("read float") {
std::vector<uint8_t> byteArray{0x40, 0x00, 0x00, 0x00};
std::shared_ptr<StreamReader_memory> stream = std::make_shared<StreamReader_memory>(byteArray.data(), (int)byteArray.size(), false);
BitstreamRange uut(stream, byteArray.size(), nullptr);
float f = uut.readFloat32();
float f = uut.read_float32();
REQUIRE(f == 2.0);
}

0 comments on commit 990fdc9

Please sign in to comment.