Closed Bug 571211 Opened 15 years ago Closed 15 years ago

Sun Studio doesn't support 64bit enum for 32bit mode

Categories

(Core :: Layout, defect)

x86
OpenSolaris
defect
Not set
normal

Tracking

()

RESOLVED FIXED

People

(Reporter: ginnchen+exoracle, Assigned: ginnchen+exoracle)

References

Details

Attachments

(1 file, 1 obsolete file)

I think 64bit enum is not a C/C++ standard. We'd better use macro or const.
Attached patch patch (obsolete) — Splinter Review
Assignee: nobody → ginn.chen
Status: NEW → ASSIGNED
Attachment #450345 - Flags: review?(dbaron)
The whole point here is to add more bits to this enum, ending up with lots of 64-bit values. So if we can't do that we need to stop using an enum altogether, which is unfortunate.
Comment on attachment 450345 [details] [diff] [review] patch What's the actual error message? The other point here is that all of these constants need to be 64-bit. Moving one of them out of the enum doesn't seem likely to change all the rest.
Attachment #450345 - Flags: review?(dbaron) → review-
"../../dist/include/nsIFrame.h", line 272: Error: enum is not within the range of a long or unsigned long. So at least we need to move out values above 0xffffffff, or to be consistent do not use enum for all the values.
Assignee: ginn.chen → dbaron
This should switch to #define for all the values.
Any chance you could post a revised patch?
Attached patch patchSplinter Review
Assignee: dbaron → ginn.chen
Attachment #450345 - Attachment is obsolete: true
Attachment #454023 - Flags: review?(dbaron)
Status: ASSIGNED → RESOLVED
Closed: 15 years ago
Resolution: --- → FIXED
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Creator:
Created:
Updated:
Size: