Changeset 4d59e4 in git
- Timestamp:
- Apr 30, 2001, 5:26:21 PM (23 years ago)
- Branches:
- (u'spielwiese', 'fe61d9c35bf7c61f2b6cbf1b56e25e2f08d536cc')
- Children:
- fcc0c2c5c75175fab60c27d251a2e3a970603671
- Parents:
- 13fe1bac96f68d4d7cf1801dc2db764cea629bcd
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
omalloc/omtTestAlloc.c
r13fe1b r4d59e4 4 4 * Author: obachman@mathematik.uni-kl.de (Olaf Bachmann) 5 5 * Created: 11/99 6 * Version: $Id: omtTestAlloc.c,v 1.1 0 2001-04-30 09:02:14Singular Exp $6 * Version: $Id: omtTestAlloc.c,v 1.11 2001-04-30 15:26:21 Singular Exp $ 7 7 *******************************************************************/ 8 8 #include "omtTest.h" … … 152 152 else if (bin != NULL && IS_FREE_BIN(spec)) 153 153 omFreeBin(addr, bin); 154 else if (IS_FREE_BINADDR(spec) && (bin != NULL ||size <= OM_MAX_BLOCK_SIZE))154 else if (IS_FREE_BINADDR(spec) && (bin != NULL) && (size <= OM_MAX_BLOCK_SIZE)) 155 155 { 156 156 omFreeBinAddr(addr); … … 334 334 TestAddrContent(new_addr, (IS_ZERO(old_spec) ? 0 : old_spec), min_size); 335 335 if (IS_ZERO(new_spec) && old_size < new_size) 336 TestAddrContent( new_addr + old_size, 0, new_size - old_size);336 TestAddrContent((char *)new_addr + old_size, 0, new_size - old_size); 337 337 } 338 338
Note: See TracChangeset
for help on using the changeset viewer.