~ubuntu-branches/ubuntu/wily/qtdeclarative-opensource-src/wily-proposed

« back to all changes in this revision

Viewing changes to src/3rdparty/masm/yarr/YarrPattern.cpp

  • Committer: Package Import Robot
  • Author(s): Ricardo Salveti de Araujo, Ricardo Salveti de Araujo, Timo Jyrinki
  • Date: 2014-06-19 02:39:21 UTC
  • mfrom: (0.1.18 experimental)
  • Revision ID: package-import@ubuntu.com-20140619023921-yb2oasnuetz9b0fc
Tags: 5.3.0-3ubuntu4
[ Ricardo Salveti de Araujo ]
* debian/control:
  - Updating dependencies as we now also have libqt5quickwidgets5-gles
* libqt5quickwidgets5.symbols: updating to allow gles variant

[ Timo Jyrinki ]
* Update libqt5quickparticles5.symbols from build logs

Show diffs side-by-side

added added

removed removed

Lines of Context:
191
191
    void addSorted(Vector<UChar>& matches, UChar ch)
192
192
    {
193
193
        unsigned pos = 0;
194
 
        unsigned range = matches.size();
 
194
        ASSERT(matches.size() <= UINT_MAX);
 
195
        unsigned range = static_cast<unsigned>(matches.size());
195
196
 
196
197
        // binary chop, find position to insert char.
197
198
        while (range) {
216
217
 
217
218
    void addSortedRange(Vector<CharacterRange>& ranges, UChar lo, UChar hi)
218
219
    {
219
 
        unsigned end = ranges.size();
 
220
        ASSERT(ranges.size() <= UINT_MAX);
 
221
        unsigned end = static_cast<unsigned>(ranges.size());
220
222
        
221
223
        // Simple linear scan - I doubt there are that many ranges anyway...
222
224
        // feel free to fix this with something faster (eg binary chop).
427
429
 
428
430
        PatternTerm& lastTerm = m_alternative->lastTerm();
429
431
 
430
 
        unsigned numParenAlternatives = parenthesesDisjunction->m_alternatives.size();
 
432
        ASSERT(parenthesesDisjunction->m_alternatives.size() <= UINT_MAX);
 
433
        unsigned numParenAlternatives = static_cast<unsigned>(parenthesesDisjunction->m_alternatives.size());
431
434
        unsigned numBOLAnchoredAlts = 0;
432
435
 
433
436
        for (unsigned i = 0; i < numParenAlternatives; i++) {