Closed
Bug 755336
Opened 12 years ago
Closed 12 years ago
convert integer types in nsAppStartup.cpp
Categories
(Toolkit :: General, defect)
Tracking
()
RESOLVED
FIXED
mozilla15
People
(Reporter: espindola, Assigned: espindola)
Details
Attachments
(2 files, 1 obsolete file)
6.57 KB,
patch
|
benjamin
:
review+
|
Details | Diff | Splinter Review |
981 bytes,
patch
|
benjamin
:
review+
|
Details | Diff | Splinter Review |
No description provided.
Assignee | ||
Updated•12 years ago
|
Attachment #624073 -
Flags: review?(benjamin)
Updated•12 years ago
|
Attachment #624073 -
Flags: review?(benjamin) → review+
Assignee | ||
Comment 1•12 years ago
|
||
https://tbpl.mozilla.org/?tree=Mozilla-Inbound&rev=246f17379cb5
Comment 2•12 years ago
|
||
https://hg.mozilla.org/mozilla-central/rev/246f17379cb5
Assignee: nobody → respindola
Status: NEW → RESOLVED
Closed: 12 years ago
Flags: in-testsuite-
Resolution: --- → FIXED
Target Milestone: --- → mozilla15
Comment 3•12 years ago
|
||
Broke the build for me on 64 bits archs : http://buildbot.rhaalovely.net/builders/mozilla-central-amd64/builds/392/steps/build/logs/stdio /var/buildslave-mozilla/mozilla-central-amd64/build/toolkit/components/startup/nsAppStartup.cpp:857: error: no matching function for call to 'nsIXULRuntime::GetReplacedLockTime(int64_t*)' ../../../dist/include/nsIXULRuntime.h:63: note: candidates are: virtual nsresult nsIXULRuntime::GetReplacedLockTime(PRInt64*) <near match> All declarations of GetReplacedLockTime() i've found in mxr are declared using PRInt64*.. and a wild guess would be to fix xpcom/system/nsIXULRuntime.idl.
Comment 4•12 years ago
|
||
As it turns out that using int64_t in nsIXULRuntime.idl doesnt work, i'm trying with a static_cast<PRInt64*> in the caller.
Comment 5•12 years ago
|
||
For the record : xpidl.IDLError: error: type 'int64_t' not found, /var/buildslave-mozilla/mozilla-central-amd64/build/xpcom/system/nsIXULRuntime.idl line 124:11 From http://buildbot.rhaalovely.net/builders/mozilla-central-amd64/builds/393/steps/build/logs/stdio Build #394 does - rv = xr->GetReplacedLockTime(&replacedLockTime); + rv = xr->GetReplacedLockTime(static_cast<PRInt64*>(&replacedLockTime));
Comment 6•12 years ago
|
||
Doesnt work, so per bug 717733 comment 2 using reinterpret_cast or declaring replacedLockTime as PRInt64 like it was previously should fix it.
Comment 7•12 years ago
|
||
Tried both, both fixes the issue. Which one should i submit ?
Comment 8•12 years ago
|
||
Attachment #625572 -
Flags: review?(benjamin)
Updated•12 years ago
|
Status: RESOLVED → REOPENED
Resolution: FIXED → ---
Comment 9•12 years ago
|
||
Comment on attachment 625572 [details] [diff] [review] cast GetReplacedLockTime arg to PRInt64 If PRInt64 and int64_t are not aliases for eachother, then "replacedLockTime" should continue to be PRInt64 until XPIDL is converted.
Attachment #625572 -
Flags: review?(benjamin) → review-
Comment 10•12 years ago
|
||
Fiar enough, here's the other fix then.
Attachment #625572 -
Attachment is obsolete: true
Attachment #625997 -
Flags: review?(benjamin)
Updated•12 years ago
|
Attachment #625997 -
Flags: review?(benjamin) → review+
Updated•12 years ago
|
Keywords: checkin-needed
Comment 11•12 years ago
|
||
https://hg.mozilla.org/integration/mozilla-inbound/rev/aade4b52f10e
Keywords: checkin-needed
Comment 12•12 years ago
|
||
https://hg.mozilla.org/mozilla-central/rev/aade4b52f10e
Status: REOPENED → RESOLVED
Closed: 12 years ago → 12 years ago
Resolution: --- → FIXED
You need to log in
before you can comment on or make changes to this bug.
Description
•