Closed
Bug 18157
Opened 25 years ago
Closed 25 years ago
Improperly treating nsresult as signed
Categories
(MailNews Core :: Backend, defect, P3)
Tracking
(Not tracked)
VERIFIED
FIXED
M12
People
(Reporter: fur, Assigned: rhp)
Details
As reported in n.p.m.builds by TenThumbs, an nsresult is being tested by comparing less than zero, which will always fail since the nsresult type is unsigned. Need to use the NS_FAILED() macro instead. http://lxr.mozilla.org/mozilla/source/mailnews/news/src/nsNNTPHost.cpp#359
Reporter | ||
Comment 1•25 years ago
|
||
Similar compiler warnings also reported by TenThumbs: http://lxr.mozilla.org/mozilla/source/mailnews/compose/src/nsMsgSend.cpp#1143 http://lxr.mozilla.org/mozilla/source/mailnews/compose/src/nsMsgSend.cpp#1146 http://lxr.mozilla.org/mozilla/source/mailnews/compose/src/nsMsgSend.cpp#1178 http://lxr.mozilla.org/mozilla/source/mailnews/compose/src/nsMsgSend.cpp#1181 http://lxr.mozilla.org/mozilla/source/mailnews/compose/src/nsMsgSend.cpp#1186 http://lxr.mozilla.org/mozilla/source/mailnews/compose/src/nsMsgSend.cpp#1197
Updated•25 years ago
|
Assignee: sspitzer → rhp
Comment 2•25 years ago
|
||
TenThumbs and fur, thanks for the heads up. I've got the fix for the warning in nsNNTPHost.cpp in my tree. re-assign to rhp so he can fix the errors in nsMsgSend.cpp.
Assignee | ||
Updated•25 years ago
|
Status: NEW → ASSIGNED
Summary: Improperly treating nsresult as signed → FIXED: Improperly treating nsresult as signed
Target Milestone: M12
Assignee | ||
Comment 3•25 years ago
|
||
Ok, I have these fixed in my tree and they are waiting to go into the tree when it opens. - rhp
Assignee | ||
Updated•25 years ago
|
Status: ASSIGNED → RESOLVED
Closed: 25 years ago
Resolution: --- → FIXED
Summary: FIXED: Improperly treating nsresult as signed → Improperly treating nsresult as signed
Assignee | ||
Comment 4•25 years ago
|
||
My fix for the nsMsgSend.cpp is in place. - rhp
Updated•20 years ago
|
Product: MailNews → Core
Updated•16 years ago
|
Product: Core → MailNews Core
Comment hidden (collapsed) |
You need to log in
before you can comment on or make changes to this bug.
Description
•