Last Comment Bug 678022 - Fix c++0x initializer list error found by clang
: Fix c++0x initializer list error found by clang
Status: RESOLVED FIXED
:
Product: Core
Classification: Components
Component: Graphics (show other bugs)
: Trunk
: x86_64 Linux
: -- normal (vote)
: mozilla8
Assigned To: Rafael Ávila de Espíndola (:espindola) (not reading bugmail)
:
: Milan Sreckovic [:milan]
Mentors:
Depends on:
Blocks:
  Show dependency treegraph
 
Reported: 2011-08-10 13:12 PDT by Rafael Ávila de Espíndola (:espindola) (not reading bugmail)
Modified: 2011-08-12 08:10 PDT (History)
2 users (show)
See Also:
Crash Signature:
(edit)
QA Whiteboard:
Iteration: ---
Points: ---
Has Regression Range: ---
Has STR: ---


Attachments
fix build (1.47 KB, patch)
2011-08-10 13:12 PDT, Rafael Ávila de Espíndola (:espindola) (not reading bugmail)
roc: review+
Details | Diff | Splinter Review

Description Rafael Ávila de Espíndola (:espindola) (not reading bugmail) 2011-08-10 13:12:52 PDT
Created attachment 552194 [details] [diff] [review]
fix build

Fix build with clang and c++0x.
    
    In c++0x one cannot use -1 in a position in an initializer list that
    is unsigned. Use UINT_MAX instead.
Comment 1 Daniel Holbert [:dholbert] 2011-08-11 11:54:42 PDT
http://hg.mozilla.org/integration/mozilla-inbound/rev/6cd84482066b
Comment 2 Matt Brubeck (:mbrubeck) 2011-08-12 08:10:20 PDT
https://hg.mozilla.org/mozilla-central/rev/6cd84482066b

Note You need to log in before you can comment on or make changes to this bug.