Closed
Bug 834762
Opened 12 years ago
Closed 12 years ago
yarr/MatchResult.h:58:44: warning: overflow in implicit constant conversion [-Woverflow]
Categories
(Core :: JavaScript Engine, defect)
Tracking
()
RESOLVED
FIXED
mozilla21
Tracking | Status | |
---|---|---|
firefox20 | --- | fixed |
People
(Reporter: dholbert, Assigned: sstangl)
References
(Blocks 1 open bug)
Details
Attachments
(1 file)
1.96 KB,
patch
|
Details | Diff | Splinter Review |
After bug 830676's patch landed, I now get:
{
mozilla/js/src/yarr/MatchResult.h:58:44: warning: overflow in implicit constant conversion [-Woverflow]
}
on my linux 64-bit machine.
Reporter | ||
Comment 1•12 years ago
|
||
The line of code pointed to is:
> 58 return MatchResult(WTF::notFound, 0);
and bug 830676 changed that MatchResult constructor to take 'int' instead of 'size_t'.
It looks like it changed another usage of notFound to explicitly be converted to an int:
> 63 return start != int(WTF::notFound);
Presumably we want to do add an "int" cast at line 58, too. Or alternately, as luke suggested in bug 830676 comment 13, we could perhaps change notFound to be already an int.
Reporter | ||
Comment 2•12 years ago
|
||
(Note: Because this is a build warning in a .h file, we spam multiple instances of this -- one for each .cpp file that ends up #including this file, directly or indirectly.)
Assignee | ||
Comment 3•12 years ago
|
||
This is the fix. Tree is closed, but I've been pinged constantly because that assertion is really annoying, so feel free to push this once the tree opens.
If not, I'll push it tomorrow.
Comment 4•12 years ago
|
||
http://hg.mozilla.org/integration/mozilla-inbound/rev/42eb5399753e (with commit-message changes to be slightly more informative :-) )
Assignee: general → sstangl
Status: NEW → ASSIGNED
Target Milestone: --- → mozilla21
Comment 5•12 years ago
|
||
Status: ASSIGNED → RESOLVED
Closed: 12 years ago
Resolution: --- → FIXED
Comment 6•12 years ago
|
||
Pushed to Aurora:
http://hg.mozilla.org/releases/mozilla-aurora/rev/9c559854783b
Where are the approval flags?
status-firefox20:
--- → fixed
Assignee | ||
Comment 7•12 years ago
|
||
(In reply to Scoobidiver from comment #6)
> Pushed to Aurora:
> http://hg.mozilla.org/releases/mozilla-aurora/rev/9c559854783b
>
> Where are the approval flags?
In Bug 830676.
You need to log in
before you can comment on or make changes to this bug.
Description
•