Closed Bug 18157 Opened 25 years ago Closed 25 years ago

Improperly treating nsresult as signed

Categories

(MailNews Core :: Backend, defect, P3)

All
Windows NT
defect

Tracking

(Not tracked)

VERIFIED FIXED

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
Assignee: sspitzer → rhp
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.
Status: NEW → ASSIGNED
Summary: Improperly treating nsresult as signed → FIXED: Improperly treating nsresult as signed
Target Milestone: M12
Ok, I have these fixed in my tree and they are waiting to go into the tree when
it opens.

- rhp
Status: ASSIGNED → RESOLVED
Closed: 25 years ago
Resolution: --- → FIXED
Summary: FIXED: Improperly treating nsresult as signed → Improperly treating nsresult as signed
My fix for the nsMsgSend.cpp is in place.

- rhp
QA Contact: lchiang → ppandit
Status: RESOLVED → VERIFIED
Checked nsINNTPHost.cpp and nsIMsgSend.cpp using LXR.

VERIFIED
Product: MailNews → Core
Product: Core → MailNews Core
You need to log in before you can comment on or make changes to this bug.