[Bug 1531] New: ALIGN() should use uintptr_t
bugzilla-daemon at rtems.org
bugzilla-daemon at rtems.org
Thu May 27 11:57:31 UTC 2010
https://www.rtems.org/bugzilla/show_bug.cgi?id=1531
Summary: ALIGN() should use uintptr_t
Product: Tools
Version: unspecified
Platform: All
OS/Version: RTEMS
Status: NEW
Severity: normal
Priority: P3
Component: Newlib
AssignedTo: ralf.corsepius at rtems.org
ReportedBy: joel.sherrill at oarcorp.com
I got this failure on m32c/m32csim.
../../../../../../rtems/c/src/../../cpukit/libmisc/shell/fts.c: In function
'fts_alloc':
../../../../../../rtems/c/src/../../cpukit/libmisc/shell/fts.c:1058: error:
cast to pointer from integer of different size
I tracked it down to this definition in machine/param.h
#define ALIGN(p) (((unsigned)(p) + ALIGNBYTES) & ~ALIGNBYTES)
The unsigned should be a uintptr_t.
--
Configure bugmail: https://www.rtems.org/bugzilla/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are watching all bug changes.
More information about the bugs
mailing list