Closed Bug 717526 Opened 14 years ago Closed 14 years ago

a lot of warning on nsStringAPI.h on win64

Categories

(Core :: XPCOM, defect)

x86
Windows Vista
defect
Not set
normal

Tracking

()

RESOLVED FIXED
mozilla12

People

(Reporter: m_kato, Assigned: m_kato)

Details

Attachments

(1 file)

Attached patch fix — — Splinter Review
https://tbpl.mozilla.org/php/getParsedLog.php?id=8484949&tree=Firefox&full=1 e:\builds\moz2_slave\m-cen-w64\build\xpcom\glue\nsStringAPI.h(1325) : warning C4244: 'argument' : conversion from '__int64' to 'PRUint32', possible loss of data e:\builds\moz2_slave\m-cen-w64\build\xpcom\glue\nsStringAPI.h(1363) : warning C4244: 'argument' : conversion from '__int64' to 'PRUint32', possible loss of data
Attachment #587959 - Flags: review?(dbaron)
Comment on attachment 587959 [details] [diff] [review] fix I suppose I really consider this a bug that we're using PRUint32 where we should be using size_t. However, r=dbaron, though I'd prefer if you also add NS_ABORT_IF_FALSE(PRUint32(end - start) == end - start, "string too long");
Attachment #587959 - Flags: review?(dbaron) → review+
Assignee: nobody → m_kato
Whiteboard: [inbound]
Status: NEW → RESOLVED
Closed: 14 years ago
Resolution: --- → FIXED
Whiteboard: [inbound]
Target Milestone: --- → mozilla12
Component: String → XPCOM
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: