Skip to content

Commit

Permalink
wip
Browse files Browse the repository at this point in the history
  • Loading branch information
copperlight committed Nov 22, 2024
1 parent 55c9e7c commit f99a409
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 3 deletions.
3 changes: 1 addition & 2 deletions spectator/smile.cc
Original file line number Diff line number Diff line change
Expand Up @@ -67,8 +67,7 @@ union LongDouble {

void SmilePayload::Append(double value) {
buffer_.Append(kByteFloat64);
LongDouble ld{};
ld.d = value;
LongDouble ld{value};
auto l = ld.l;

// Handle first 29 bits (single bit first, then 4 x 7 bits)
Expand Down
2 changes: 1 addition & 1 deletion spectator/tags_test.cc
Original file line number Diff line number Diff line change
Expand Up @@ -59,7 +59,7 @@ auto prepare_tags(Tags* tags) -> void {
}

auto verify_tags(const Tags& tags, int n) -> void {
ASSERT_TRUE(tags.capacity() >= n);
ASSERT_TRUE((int)tags.capacity() >= n);
for (auto i = n - 1; i >= 0; --i) {
auto k = spectator::intern_str(fmt::format("K{}", i));
auto v = spectator::intern_str(fmt::format("V{}", i));
Expand Down

0 comments on commit f99a409

Please sign in to comment.