From 8d509d8773f4f23df42087005a64e7c13b921f1f Mon Sep 17 00:00:00 2001 From: Rich Trott Date: Fri, 6 Aug 2021 21:36:34 -0700 Subject: [PATCH] tools: update inspector_protocol to 39ca567 MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Refs: https://chromium.googlesource.com/deps/inspector_protocol/+log PR-URL: https://github.com/nodejs/node/pull/39694 Reviewed-By: Michaël Zasso Reviewed-By: Tobias Nießen Reviewed-By: James M Snell --- tools/inspector_protocol/encoding/encoding_test.cc | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/tools/inspector_protocol/encoding/encoding_test.cc b/tools/inspector_protocol/encoding/encoding_test.cc index 067ede2748685a..6893fe2581683c 100644 --- a/tools/inspector_protocol/encoding/encoding_test.cc +++ b/tools/inspector_protocol/encoding/encoding_test.cc @@ -252,7 +252,8 @@ TEST(EncodeDecodeInt32Test, RoundtripsInt32Min) { EXPECT_EQ(std::numeric_limits::min(), tokenizer.GetInt32()); // It's nice to see how the min int32 value reads in hex: // That is, -1 minus the unsigned payload (0x7fffffff, see above). - EXPECT_EQ(-0x80000000l, tokenizer.GetInt32()); + int32_t expected = -1 - 0x7fffffff; + EXPECT_EQ(expected, tokenizer.GetInt32()); tokenizer.Next(); EXPECT_EQ(CBORTokenTag::DONE, tokenizer.TokenTag()); }