Changeset 681957e in git


Ignore:
Timestamp:
Aug 24, 2000, 4:07:10 PM (24 years ago)
Author:
Olaf Bachmann <obachman@…>
Branches:
(u'fieker-DuVal', '117eb8c30fc9e991c4decca4832b1d19036c4c65')(u'spielwiese', 'c1c65551e4b3a0de0b13ddf30446f6e9569681b5')
Children:
4f65c4b8cfe78257f54d326cd1a5e89c3c0117e7
Parents:
5c5c07bd36d915cf943f0c489ad4482807f941fb
Message:
* bug fix


git-svn-id: file:///usr/local/Singular/svn/trunk@4554 2c84dea3-7e68-4137-9b89-c4e89433aadc
File:
1 edited

Legend:

Unmodified
Added
Removed
  • omalloc/omDebugTrack.c

    r5c5c07 r681957e  
    44 *  Author:  obachman@mathematik.uni-kl.de (Olaf Bachmann)
    55 *  Created: 11/99
    6  *  Version: $Id: omDebugTrack.c,v 1.4 2000-08-18 09:05:52 obachman Exp $
     6 *  Version: $Id: omDebugTrack.c,v 1.5 2000-08-24 14:07:10 obachman Exp $
    77 *******************************************************************/
    88#include <limits.h>
     
    506506  else
    507507  {
    508       if (flags & OM_FBIN)
    509       {
    510         size_t size = omTrackAddr_2_OutSize(d_addr);
    511         omAddrCheckReturnError(!omIsKnownTopBin((omBin) bin_size, 1), omError_UnknownBin);
    512         omAddrCheckReturnError(size < (((omBin)bin_size)->sizeW<<LOG_SIZEOF_LONG), omError_WrongBin);
    513       }
    514       else if (flags & OM_FSIZE && (!(flags & OM_FSLOPPY)  || bin_size > 0))
    515       {
    516         omAddrCheckReturnError(omTrackAddr_2_OutSize(d_addr) < (size_t) bin_size, omError_WrongSize);
    517       }
     508    /* track < 2 */
     509    if (flags & OM_FBIN)
     510    {
     511      size_t size = omTrackAddr_2_OutSize(d_addr);
     512      omAddrCheckReturnError(!omIsKnownTopBin((omBin) bin_size, 1), omError_UnknownBin);
     513      omAddrCheckReturnError(size < (((omBin)bin_size)->sizeW<<LOG_SIZEOF_LONG), omError_WrongBin);
     514    }
     515    else if (flags & OM_FSIZE && (!(flags & OM_FSLOPPY)  || bin_size > 0))
     516    {
     517      omAddrCheckReturnError(omTrackAddr_2_OutSize(d_addr) < (size_t) bin_size, omError_WrongSize);
     518    }
     519    else if (flags & OM_FBINADDR)
     520    {
     521      size_t size = omTrackAddr_2_OutSize(d_addr);
     522      omAddrCheckReturnError(size > OM_MAX_BLOCK_SIZE, omError_NotBinAddr);
     523    }
    518524  }
    519525  return omError_NoError;
Note: See TracChangeset for help on using the changeset viewer.