#1531 closed defect

ALIGN() should use uintptr_t — at Initial Version

Reported by: Joel Sherrill Owned by: Ralf Corsepius
Priority: normal Milestone: 4.11
Component: tool/newlib Version: 4.11
Severity: normal Keywords:
Cc: Blocked By:
Blocking:

Description

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.

Change History (0)

Note: See TracTickets for help on using tickets.