-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
QTypeRevision: fix support for 8-bit signed segments
The logic in the isValidSegment() function was failing for 8-bit signed because for them Integer(SegmentUnknown) is -1, so (std::numeric_limits<Integer>::max)() < Integer(SegmentUnknown) was always false (127 < -1) and the function would only return true on the impossible condition of segment >= 0 && segment < -1 Fixes: QTBUG-128848 Pick-to: 6.5 6.8 Change-Id: I8d17b93afd6c2982a099fffdcaeccf126b7a9d02 Reviewed-by: Ulf Hermann <[email protected]>
- Loading branch information
1 parent
a572b4b
commit ddfcc07
Showing
2 changed files
with
6 additions
and
4 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters