Closed
Bug 903012
Opened 11 years ago
Closed 11 years ago
Replace PR_STATIC_ASSERT with static_assert in WaveReader
Categories
(Core :: Audio/Video, defect)
Tracking
()
RESOLVED
FIXED
mozilla26
People
(Reporter: rillian, Assigned: rillian)
References
Details
Attachments
(2 files, 1 obsolete file)
5.18 KB,
patch
|
kinetik
:
review+
ehsan.akhgari
:
feedback+
|
Details | Diff | Splinter Review |
2.19 KB,
patch
|
rillian
:
review+
|
Details | Diff | Splinter Review |
Now that we can use C++11 static_assert, replace PR_STATIC_ASSERT macros in content/media/wave/
Assignee | ||
Comment 1•11 years ago
|
||
Assignee: nobody → giles
Attachment #787651 -
Flags: review?(kinetik)
Attachment #787651 -
Flags: feedback?(ehsan)
Assignee | ||
Comment 2•11 years ago
|
||
Attachment #787652 -
Flags: review?(kinetik)
Assignee | ||
Comment 3•11 years ago
|
||
https://tbpl.mozilla.org/?tree=Try&rev=7c8355c5865b
Comment 4•11 years ago
|
||
Comment on attachment 787651 [details] [diff] [review] Part 1: replace PR_STATIC_ASSERT with static_assert in WaveReader Review of attachment 787651 [details] [diff] [review]: ----------------------------------------------------------------- Nice!
Attachment #787651 -
Flags: feedback?(ehsan) → feedback+
Updated•11 years ago
|
Attachment #787651 -
Flags: review?(kinetik) → review+
Comment 5•11 years ago
|
||
Comment on attachment 787652 [details] [diff] [review] Part 2: fix assertion nits Review of attachment 787652 [details] [diff] [review]: ----------------------------------------------------------------- ::: content/media/wave/WaveReader.cpp @@ +337,4 @@ > return false; > } > > + static_assert(sizeof(uint32_t) * 2 + 4 <= RIFF_INITIAL_SIZE, I think it'd be slightly clearer if we make it |sizeof(uint32_t) * 3| and change |p += 4| to |p += sizeof(uint32_t)|.
Attachment #787652 -
Flags: review?(kinetik) → review+
Assignee | ||
Comment 6•11 years ago
|
||
Thanks. Updated patch to incorporate review suggestions. Carrying forward r=kinetik.
Attachment #787652 -
Attachment is obsolete: true
Attachment #788746 -
Flags: review+
Assignee | ||
Comment 7•11 years ago
|
||
https://hg.mozilla.org/integration/mozilla-inbound/rev/ea96533eaff9 https://hg.mozilla.org/integration/mozilla-inbound/rev/ce87bb4db33f
Comment 8•11 years ago
|
||
https://hg.mozilla.org/mozilla-central/rev/ea96533eaff9 https://hg.mozilla.org/mozilla-central/rev/ce87bb4db33f
Status: NEW → RESOLVED
Closed: 11 years ago
Resolution: --- → FIXED
Target Milestone: --- → mozilla26
You need to log in
before you can comment on or make changes to this bug.
Description
•