Closed
Bug 146
Opened 27 years ago
Closed
prscanf.c(184) : unary minus operator applied to unsigned type
Categories
(NSPR :: NSPR, defect, P3)
NSPR
NSPR
Tracking
(Not tracked)
VERIFIED
FIXED
People
(Reporter: rick, Assigned: wtc)
Details
Created by Rick Osborne (rick@rixsoft.com) on Saturday, April 11, 1998 8:38:25 PM PDT
Additional Details :
The function _pr_strtoull is for Uint64 but gets called in a
signed context. Just need to cast as signed when applying
negative. Trivial, but it eliminates one more compiler
warning.
--- prscanf.c Sat Apr 11 23:16:19 1998
+++ prscanf.old.c Wed Apr 08 17:55:01 1998
@@ -181,7 +181,7 @@
}
if (negative) {
- LL_NEG((PRInt64)x, (PRInt64)x);
+ LL_NEG(x, x);
}
if (endptr) {
Updated by Wan-Teh Chang (wtc@netscape.com) on Friday, April 24, 1998 12:32:08 PM PDT
Additional Details :
Assigned bug to myself.
Comment 1•26 years ago
|
||
Wan-teh, Rick, is this bug still relevant? Trying to clean up old bugs. Will
close out if I don't hear anything in a week or so.
Comment 2•26 years ago
|
||
per leger, assigning QA contacts to all open bugs without QA contacts according
to list at http://bugzilla.mozilla.org/describecomponents.cgi?product=Browser
QA Contact: 4078
Wan-Teh, these are some pretty old bugs. i can't help but assume they have
been fixed by now. If you don't have any objections, i will close out and
verify these bugs in a couple of days: 146, 148, 149, 150, 151, 152, 154
please take corrective action if this is not doing the Right Thing, but,
as it has been a while, i'm marking these fixed and will immediately verify:
bugs 146, 148, 149, 150, 151, 152, 154
Assignee | ||
Comment 6•25 years ago
|
||
A fix is checked in revision 3.5 of
/cvsroot/mozilla/nsprpub/pr/src/io/prscanf.c.
Comment 7•25 years ago
|
||
NSPR now has its own Bugzilla product. Moving this bug to the NSPR product.
You need to log in
before you can comment on or make changes to this bug.
Description
•