Closed
Bug 1439355
Opened 8 years ago
Closed 8 years ago
use static_assert instead of NS_ASSERTION in nsBinaryStream.cpp
Categories
(Core :: XPCOM, enhancement)
Core
XPCOM
Tracking
()
RESOLVED
FIXED
mozilla60
| Tracking | Status | |
|---|---|---|
| firefox60 | --- | fixed |
People
(Reporter: froydnj, Assigned: froydnj)
Details
Attachments
(1 file)
|
2.97 KB,
patch
|
nika
:
review+
|
Details | Diff | Splinter Review |
The intention is a little more clear with static_assert, as well as
failing sooner. (The code is probably the same, since the compiler will
optimize out the checks as dead code, but meh.)
| Assignee | ||
Comment 1•8 years ago
|
||
Attachment #8952119 -
Flags: review?(nika)
Comment 2•8 years ago
|
||
Comment on attachment 8952119 [details] [diff] [review]
use static_assert instead of NS_ASSERTION in nsBinaryStream.cpp
Review of attachment 8952119 [details] [diff] [review]:
-----------------------------------------------------------------
::: xpcom/io/nsBinaryStream.cpp
@@ +201,1 @@
> "False assumption about sizeof(float)");
nit: fix indentation of string here and below.
Attachment #8952119 -
Flags: review?(nika) → review+
Pushed by nfroyd@mozilla.com:
https://hg.mozilla.org/integration/mozilla-inbound/rev/0586b21d0709
use static_assert instead of NS_ASSERTION in nsBinaryStream.cpp; r=mystor
Comment 4•8 years ago
|
||
| bugherder | ||
Status: NEW → RESOLVED
Closed: 8 years ago
status-firefox60:
--- → fixed
Resolution: --- → FIXED
Target Milestone: --- → mozilla60
You need to log in
before you can comment on or make changes to this bug.
Description
•