This is the mail archive of the
newlib@sourceware.org
mailing list for the newlib project.
[patch] Avoid bogus pointer->int cast
- From: Ralf Corsepius <ralf dot corsepius at rtems dot org>
- To: "newlib at sourceware dot org" <newlib at sourceware dot org>
- Date: Tue, 17 Jul 2012 19:21:08 +0200
- Subject: [patch] Avoid bogus pointer->int cast
Hi,
The patch below addresses a (minor) bug in readdir.c. It replaces a
(bogus) pointer->int cast with a pointer->intptr_t cast.
[pointer->int casts are invalid on many architectures.]
OK to commit? If nobody objects, I am going to commit this patch later
this week.
Ralf