summaryrefslogtreecommitdiffstats
path: root/cpukit
diff options
context:
space:
mode:
authorRalf Corsepius <ralf.corsepius@rtems.org>2009-11-19 13:51:40 +0000
committerRalf Corsepius <ralf.corsepius@rtems.org>2009-11-19 13:51:40 +0000
commit88db141a5d1176216ff24bc921b59c8dc8ff7c2c (patch)
treee822ceb82771988d01afe48237627a268ec0d439 /cpukit
parent2009-11-18 Chris Johns <chrisj@rtems.org> (diff)
downloadrtems-88db141a5d1176216ff24bc921b59c8dc8ff7c2c.tar.bz2
2009-11-19 Ralf Corsépius <ralf.corsepius@rtems.org>
* libcsupport/src/malloc_boundary.c: Avoid implicit type cast (https://www.rtems.org/bugzilla/show_bug.cgi?id=1472#c1).
Diffstat (limited to 'cpukit')
-rw-r--r--cpukit/ChangeLog5
-rw-r--r--cpukit/libcsupport/src/malloc_boundary.c2
2 files changed, 6 insertions, 1 deletions
diff --git a/cpukit/ChangeLog b/cpukit/ChangeLog
index a16d09ea8f..e2a1ab3c19 100644
--- a/cpukit/ChangeLog
+++ b/cpukit/ChangeLog
@@ -1,3 +1,8 @@
+2009-11-19 Ralf Corsépius <ralf.corsepius@rtems.org>
+
+ * libcsupport/src/malloc_boundary.c: Avoid implicit type cast
+ (https://www.rtems.org/bugzilla/show_bug.cgi?id=1472#c1).
+
2009-11-18 Chris Johns <chrisj@rtems.org>
* libmisc/shell/main_getenv.c, libmisc/shell/main_setenv.c,
diff --git a/cpukit/libcsupport/src/malloc_boundary.c b/cpukit/libcsupport/src/malloc_boundary.c
index a48f4b613d..f8f6d34bce 100644
--- a/cpukit/libcsupport/src/malloc_boundary.c
+++ b/cpukit/libcsupport/src/malloc_boundary.c
@@ -86,7 +86,7 @@ static void rtems_malloc_boundary_at_malloc(
for (i = 0 ; i < CALLCHAINSIZE ; i++) {
mp->callChain[i] = fp[1];
nfp = (int *)(fp[0]);
- if((nfp <= fp) || (nfp > (int *)((intptr_t)1 << 24)))
+ if((nfp <= fp) || (nfp > (int *)(INT32_C(0x1000000) /* 1 << 24 */)))
break;
fp = nfp;
}