Bug 7959 - potential problems when running on big endian machines
Summary: potential problems when running on big endian machines
Status: RESOLVED FIXED
Alias: None
Product: Platform
Classification: Eclipse Project
Component: SWT (show other bugs)
Version: 2.0   Edit
Hardware: PC Unix All
: P3 normal (vote)
Target Milestone: 2.0 M2   Edit
Assignee: Grant Gayed CLA
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2002-01-21 14:33 EST by Grant Gayed CLA
Modified: 2002-01-21 14:34 EST (History)
0 users

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Grant Gayed CLA 2002-01-21 14:33:03 EST
We assume we're running on small endian machines.  This is usually not causing 
a problem for us as a result of the zero-value hack that is in the XtGetValues 
implementation for most platforms, which will set up our result nicely 
according to the machine's endianness.  However there are cases where this hack 
is not present (the case that brought this to our attention was AIX), so we 
cannot rely on it.
Comment 1 Grant Gayed CLA 2002-01-21 14:34:53 EST
Fixed, with SN's blessing.  In the C code for our XtGetValues stub we 
explicitly cast the result according to its expected size.