| FazBrowse GitHub Viewer | Trending | | Home |
| Tools: [Download Repo ZIP] [Original HTTPS Page] |
1 parent b95a759 commit 383fa01
2 files changed
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -833,9 +833,8 @@ void CBORTokenizer::ReadNextToken(bool enter_envelope) { | |||
| 833 | 833 | // inspector_protocol, it's not a CBOR limitation), so we check | |
| 834 | 834 | // against the signed max, so that the allowable values are | |
| 835 | 835 | // 0, 1, 2, ... 2^31 - 1. | |
| 836 | - if (!success || | ||
| 837 | - static_cast<int64_t>(std::numeric_limits<int32_t>::max()) < | ||
| 838 | - static_cast<int64_t>(token_start_internal_value_)) { | ||
| 836 | + if (!success || std::numeric_limits<int32_t>::max() < | ||
| 837 | + token_start_internal_value_) { | ||
| 839 | 838 | SetError(Error::CBOR_INVALID_INT32); | |
| 840 | 839 | return; | |
| 841 | 840 | } | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -840,9 +840,8 @@ void CBORTokenizer::ReadNextToken(bool enter_envelope) { | |||
| 840 | 840 | // inspector_protocol, it's not a CBOR limitation), so we check | |
| 841 | 841 | // against the signed max, so that the allowable values are | |
| 842 | 842 | // 0, 1, 2, ... 2^31 - 1. | |
| 843 | - if (!success || | ||
| 844 | - static_cast<int64_t>(std::numeric_limits<int32_t>::max()) < | ||
| 845 | - static_cast<int64_t>(token_start_internal_value_)) { | ||
| 843 | + if (!success || std::numeric_limits<int32_t>::max() < | ||
| 844 | + token_start_internal_value_) { | ||
| 846 | 845 | SetError(Error::CBOR_INVALID_INT32); | |
| 847 | 846 | return; | |
| 848 | 847 | } | |
| Back | FazBrowse Home | New Git URL |
0 commit comments