Browse Source
Merge pull request #22 from AkiraMiyakoda/fix-msvc2019-warning
Fix MSVC 2017-2019 warning about negative unsigned value.
master
nemtrif
5 years ago
committed by
GitHub
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with
2 additions and
2 deletions
-
source/utf8/core.h
|
|
@ -49,8 +49,8 @@ namespace internal |
|
|
|
const uint16_t LEAD_SURROGATE_MAX = 0xdbffu; |
|
|
|
const uint16_t TRAIL_SURROGATE_MIN = 0xdc00u; |
|
|
|
const uint16_t TRAIL_SURROGATE_MAX = 0xdfffu; |
|
|
|
const uint16_t LEAD_OFFSET = LEAD_SURROGATE_MIN - (0x10000 >> 10); |
|
|
|
const uint32_t SURROGATE_OFFSET = 0x10000u - (LEAD_SURROGATE_MIN << 10) - TRAIL_SURROGATE_MIN; |
|
|
|
const uint16_t LEAD_OFFSET = 0xd7c0u; // LEAD_SURROGATE_MIN - (0x10000 >> 10)
|
|
|
|
const uint32_t SURROGATE_OFFSET = 0xfca02400u; // 0x10000u - (LEAD_SURROGATE_MIN << 10) - TRAIL_SURROGATE_MIN
|
|
|
|
|
|
|
|
// Maximum valid value for a Unicode code point
|
|
|
|
const uint32_t CODE_POINT_MAX = 0x0010ffffu; |
|
|
|