Closed
Bug 736887
Opened 12 years ago
Closed 12 years ago
nsHttpChannel.cpp: warning C4244: 'argument' : conversion from 'double' to 'PRTime', possible loss of data
Categories
(Core :: Networking: HTTP, defect)
Tracking
()
RESOLVED
FIXED
mozilla14
People
(Reporter: briansmith, Assigned: briansmith)
References
Details
Attachments
(1 file)
1.24 KB,
patch
|
Biesinger
:
review+
|
Details | Diff | Splinter Review |
+++ This bug was initially created as a clone of Bug #576006 +++ MSVC2010 complains with the warning in the summary. The code is: #define IMPL_TIMING_ATTR(name) \ NS_IMETHODIMP \ nsHttpChannel::Get##name##Time(PRTime* _retval) { \ mozilla::TimeStamp stamp; \ Get##name(&stamp); \ if (stamp.IsNull()) { \ *_retval = 0; \ return NS_OK; \ } \ *_retval = mChannelCreationTime + \ (stamp - mChannelCreationTimestamp).ToSeconds() * 1e6; \ return NS_OK; \ } AFAICT, the simplest way to avoid the warning is to explicitly cast the expression ((stamp - mChannelCreationTimestamp).ToSeconds() * 1e6) to PRTime.
Assignee | ||
Comment 1•12 years ago
|
||
Updated•12 years ago
|
Attachment #607027 -
Flags: review?(cbiesinger) → review+
Assignee | ||
Comment 2•12 years ago
|
||
https://hg.mozilla.org/integration/mozilla-inbound/rev/497086b1463c
Target Milestone: --- → mozilla14
Comment 3•12 years ago
|
||
http://hg.mozilla.org/mozilla-central/rev/497086b1463c
Status: ASSIGNED → RESOLVED
Closed: 12 years ago
Resolution: --- → FIXED
You need to log in
before you can comment on or make changes to this bug.
Description
•