Closed Bug 700712 Opened 13 years ago Closed 12 years ago

MSVC warning in nsCycleCollector.cpp: warning C4244: 'initializing' : conversion from 'double' to 'PRUint32', possible loss of data

Categories

(Core :: XPCOM, defect)

x86
Windows 7
defect
Not set
normal

Tracking

()

RESOLVED WORKSFORME

People

(Reporter: mccr8, Unassigned)

References

(Blocks 1 open bug)

Details

(Whiteboard: [build_warning])

e:/builds/moz2_slave/m-cen-w32/build/xpcom/base/nsCycleCollector.cpp(2675) : warning C4244: 'initializing' : conversion from 'double' to 'PRUint32', possible loss of data

That's this line:
    PRUint32 interval((TimeStamp::Now() - mCollectionStart).ToMilliseconds());

I guess this just needs to be wrapped in a static_cast.
I fixed this in bug 726374.
Status: NEW → RESOLVED
Closed: 12 years ago
Resolution: --- → WORKSFORME
You need to log in before you can comment on or make changes to this bug.