Skip to content

Commit

Permalink
Fix warnings in mock_runtime_test.cc
Browse files Browse the repository at this point in the history
  • Loading branch information
ry committed Jul 18, 2018
1 parent d782540 commit c775d0c
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions src/mock_runtime_test.cc
Original file line number Diff line number Diff line change
Expand Up @@ -129,9 +129,9 @@ TEST(MockRuntimeTest, JSSendArrayBufferViewTypes) {
Deno* d = deno_new(nullptr, [](auto _, auto buf) {
count++;
size_t data_offset = buf.data_ptr - buf.alloc_ptr;
EXPECT_EQ(data_offset, 2468);
EXPECT_EQ(buf.data_len, 1000);
EXPECT_EQ(buf.alloc_len, 4321);
EXPECT_EQ(data_offset, 2468u);
EXPECT_EQ(buf.data_len, 1000u);
EXPECT_EQ(buf.alloc_len, 4321u);
EXPECT_EQ(buf.data_ptr[0], count);
});
EXPECT_TRUE(deno_execute(d, "a.js", "JSSendArrayBufferViewTypes()"));
Expand All @@ -143,7 +143,7 @@ TEST(MockRuntimeTest, JSSendNeutersBuffer) {
static int count = 0;
Deno* d = deno_new(nullptr, [](auto _, auto buf) {
count++;
EXPECT_EQ(buf.data_len, 1);
EXPECT_EQ(buf.data_len, 1u);
EXPECT_EQ(buf.data_ptr[0], 42);
});
EXPECT_TRUE(deno_execute(d, "a.js", "JSSendNeutersBuffer()"));
Expand Down

0 comments on commit c775d0c

Please sign in to comment.