diff options
author | levine <levine@ae88bc3d-4319-0410-8dbf-d08b4c9d3795> | 1998-07-20 03:22:14 +0000 |
---|---|---|
committer | levine <levine@ae88bc3d-4319-0410-8dbf-d08b4c9d3795> | 1998-07-20 03:22:14 +0000 |
commit | f351613b4d590e98af06ebecc337cf48d793e041 (patch) | |
tree | cdf9be07f697e793c5c5e5983d8f9e50554a0a1f /apps/gperf | |
parent | 45a86f47d4b8d70a5b33c3695b1e072cdc18b649 (diff) | |
download | ATCD-f351613b4d590e98af06ebecc337cf48d793e041.tar.gz |
(new): wrapped assignment with parens where used as a conditional.
Diffstat (limited to 'apps/gperf')
-rw-r--r-- | apps/gperf/src/new.cpp | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/apps/gperf/src/new.cpp b/apps/gperf/src/new.cpp index 1b93140b866..c08e4dad78c 100644 --- a/apps/gperf/src/new.cpp +++ b/apps/gperf/src/new.cpp @@ -40,7 +40,7 @@ _RWSTD_THROW_SPEC ((std::bad_alloc)) #endif /* _RWSTD_THROW_SPEC */ { // @@ This function should probably be replaced with something from - // ACE, e.g., some type of ACE_Memory_Allocator. + // ACE, e.g., some type of ACE_Memory_Allocator. static char *buf_start = 0; // Large array used to reduce calls to NEW. static char *buf_end = 0; // Indicates end of BUF_START. @@ -56,13 +56,13 @@ _RWSTD_THROW_SPEC ((std::bad_alloc)) // chunk. Note we use a heuristic that grows the buffer either by // size of the request or by twice the previous size, whichever is // larger. - + if (buf_start + size >= buf_end) { buf_size *= 2; if (buf_size < size) - buf_size = size; - if (buf_start = (char *) malloc (buf_size)) + buf_size = size; + if ((buf_start = (char *) malloc (buf_size))) buf_end = buf_start + buf_size; else ACE_ERROR ((LM_ERROR, @@ -80,7 +80,7 @@ _RWSTD_THROW_SPEC ((std::bad_alloc)) // We need this deletion operator in order to make the linker happy. -void +void operator delete (void *ptr) { // We cannot call free here, as it doesn't match the mallocs. free |