| FazBrowse GitHub Viewer | Trending | | Home |
| Tools: [Download Repo ZIP] [Original HTTPS Page] |
1 parent 6870bb7 commit 9847d58
1 file changed
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -252,7 +252,8 @@ TEST(EncodeDecodeInt32Test, RoundtripsInt32Min) { | |||
| 252 | 252 | EXPECT_EQ(std::numeric_limits<int32_t>::min(), tokenizer.GetInt32()); | |
| 253 | 253 | // It's nice to see how the min int32 value reads in hex: | |
| 254 | 254 | // That is, -1 minus the unsigned payload (0x7fffffff, see above). | |
| 255 | - EXPECT_EQ(-0x80000000l, tokenizer.GetInt32()); | ||
| 255 | + int32_t expected = -1 - 0x7fffffff; | ||
| 256 | + EXPECT_EQ(expected, tokenizer.GetInt32()); | ||
| 256 | 257 | tokenizer.Next(); | |
| 257 | 258 | EXPECT_EQ(CBORTokenTag::DONE, tokenizer.TokenTag()); | |
| 258 | 259 | } | |
| Back | FazBrowse Home | New Git URL |
0 commit comments