Closed
Bug 88768
Opened 24 years ago
Closed 23 years ago
unary minus operator applied to unsigned type, result still unsigned
Categories
(Core :: Networking: Cache, defect)
Tracking
()
VERIFIED
FIXED
mozilla0.9.5
People
(Reporter: timeless, Assigned: gordon)
References
()
Details
(Whiteboard: PDT+)
Attachments
(2 files)
718 bytes,
patch
|
Details | Diff | Splinter Review | |
799 bytes,
patch
|
Details | Diff | Splinter Review |
warning from 092 branch:
mozilla\netwerk\cache\src\nsCacheEntryDescriptor.cpp(606) : warning C4146:
unary minus operator applied to unsigned type, result still unsigned
606 PRInt32 delta = -cacheEntry->DataSize();
Comment 2•24 years ago
|
||
Comment 3•24 years ago
|
||
The minus sign didn't seem to be doing anything, so I removed it (see patch).
dougt: can you review?
Status: NEW → ASSIGNED
Keywords: patch
Comment 4•24 years ago
|
||
hmm.
shouldn't it be something like:
PRInt32 delta = cacheEntry->DataSize();
rv = device->OnDataSizeChange(cacheEntry, -delta);
Comment 5•24 years ago
|
||
Comment 6•24 years ago
|
||
-> gordon. This should be very quick. I am not familiar with the cache code, and
what OnDataSizeChange is doing. Mind taking a look?
Assignee: jtaylor → gordon
Status: ASSIGNED → NEW
Comment 8•24 years ago
|
||
Gordon/Gagan - Is this worthy of a nsbranch+ nomination.
Pls help . . . we are trying to get a good picture of what work is left for the
next release.
I think this is a safe change to make. I'm not aware of any user reported bugs
attributable to this however. I'll land this on the trunk, and I'm willing to
land it on the branch as well.
Comment 10•24 years ago
|
||
I think this is very low risk and should be allowed onto the branch. Marking
nsbranch+. Gordon, please check this in on the 0.9.4 branch. Thanks!
Keywords: nsbranch+
Updated•24 years ago
|
Whiteboard: PDT+
Assignee | ||
Comment 12•23 years ago
|
||
Fix checked into trunk and branch.
Assignee | ||
Comment 13•23 years ago
|
||
Marking FIXED.
Status: ASSIGNED → RESOLVED
Closed: 23 years ago
Resolution: --- → FIXED
Comment 14•23 years ago
|
||
gordon: since you reviewed this patch, can you mark this bug as verified?
You need to log in
before you can comment on or make changes to this bug.
Description
•