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).
This commit is contained in:
Ralf Corsepius
2009-11-19 13:51:40 +00:00
parent 05404983e2
commit 88db141a5d
2 changed files with 6 additions and 1 deletions

View File

@@ -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,

View File

@@ -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;
}