diff options
author | schmidt <douglascraigschmidt@users.noreply.github.com> | 1997-02-25 06:01:48 +0000 |
---|---|---|
committer | schmidt <douglascraigschmidt@users.noreply.github.com> | 1997-02-25 06:01:48 +0000 |
commit | b8edddfb87430fe4552f508889d1633905b9820b (patch) | |
tree | df4edead9fdea04de79dd31b7c4ab0fd4ce3bdef /ace/Malloc_T.cpp | |
parent | 7e7dceff2f9218a2f625c1eacdd8b47b1e0f6b1e (diff) | |
download | ATCD-b8edddfb87430fe4552f508889d1633905b9820b.tar.gz |
*** empty log message ***
Diffstat (limited to 'ace/Malloc_T.cpp')
-rw-r--r-- | ace/Malloc_T.cpp | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/ace/Malloc_T.cpp b/ace/Malloc_T.cpp index 4a45dbcb3cb..4eee920fae8 100644 --- a/ace/Malloc_T.cpp +++ b/ace/Malloc_T.cpp @@ -221,8 +221,9 @@ ACE_Malloc<ACE_MEM_POOL_2, LOCK>::shared_malloc (size_t nbytes) ACE_TRACE ("ACE_Malloc<ACE_MEM_POOL_2, LOCK>::shared_malloc"); // Round up request to a multiple of the ACE_Malloc_Header size. - size_t nunits = (nbytes + sizeof (ACE_Malloc_Header) - 1) - / sizeof (ACE_Malloc_Header) + 1; + size_t nunits = + (nbytes + sizeof (ACE_Malloc_Header) - 1) / sizeof (ACE_Malloc_Header) + + 1; // Add one for the <ACE_Malloc_Header> itself. // Begin the search starting at the place in the freelist // where the last block was found. |