| Summary: | s_maxSize should be 'unsigned' rather than 'int' in WidthCache.h | ||
|---|---|---|---|
| Product: | WebKit | Reporter: | Ahmad Saleem <ahmad.saleem792> |
| Component: | Layout and Rendering | Assignee: | Nobody <webkit-unassigned> |
| Status: | RESOLVED FIXED | ||
| Severity: | Normal | CC: | ap, bfulgham, ggaren, mmaxfield, ntim, simon.fraser, webkit-bug-importer, zalan |
| Priority: | P2 | Keywords: | InRadar |
| Version: | WebKit Nightly Build | ||
| Hardware: | Unspecified | ||
| OS: | Unspecified | ||
|
Description
Ahmad Saleem
2023-03-02 15:25:27 PST
Just noticed that above - https://searchfox.org/wubkat/source/Source/WebCore/platform/graphics/WidthCache.h#204 There is this as well, where size() is unsigned in HashMap.h: m_map.size() < s_maxSize https://searchfox.org/wubkat/source/Source/WTF/wtf/HashMap.h#267 So we are comparing 'unsigned' with 'int'. Yes, the thing it's compared to is an unsigned, so it should be an unsigned too. Committed 261252@main (315cbcb64568): <https://commits.webkit.org/261252@main> Reviewed commits have been landed. Closing PR #11082 and removing active labels. |