diff options
author | Joel Sherrill <joel.sherrill@OARcorp.com> | 1996-09-18 20:51:48 +0000 |
---|---|---|
committer | Joel Sherrill <joel.sherrill@OARcorp.com> | 1996-09-18 20:51:48 +0000 |
commit | 94218b8ebd628920d9584d54a5017b44220e5798 (patch) | |
tree | f5fa473ec7d95e45d941fac4a91ecd97fc888359 /c/src/exec/score/src/wkspace.c | |
parent | corrected prototype of _Objects_Get_next (diff) | |
download | rtems-94218b8ebd628920d9584d54a5017b44220e5798.tar.bz2 |
loop to clear workspace memory changed to use sizeof rather than
hardcoded 4 to be compatible with CPUs with 64-bit ints
Diffstat (limited to '')
-rw-r--r-- | c/src/exec/score/src/wkspace.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/c/src/exec/score/src/wkspace.c b/c/src/exec/score/src/wkspace.c index 1dda9408bb..dd8865da52 100644 --- a/c/src/exec/score/src/wkspace.c +++ b/c/src/exec/score/src/wkspace.c @@ -43,7 +43,7 @@ void _Workspace_Handler_initialization( if ( _CPU_Table.do_zero_of_workspace ) { for( zero_out_array = (unsigned32 *) starting_address, index = 0 ; - index < size / 4 ; + index < size / sizeof( unsigned32 ) ; index++ ) zero_out_array[ index ] = 0; } |