Changeset bfdab9 in git


Ignore:
Timestamp:
Jun 8, 2005, 2:34:59 PM (19 years ago)
Author:
Hans Schönemann <hannes@…>
Branches:
(u'spielwiese', 'fe61d9c35bf7c61f2b6cbf1b56e25e2f08d536cc')
Children:
261735d407471bf3413150f3179011e8eca56bd3
Parents:
17b33e97f355a2a8bc79faaa436017f0dfdae51c
Message:
*hannes: size corrected


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

Legend:

Unmodified
Added
Removed
  • kernel/hutil.cc

    r17b33e rbfdab9  
    22*  Computer Algebra System SINGULAR     *
    33****************************************/
    4 /* $Id: hutil.cc,v 1.5 2005-04-26 17:14:36 Singular Exp $ */
     4/* $Id: hutil.cc,v 1.6 2005-06-08 12:34:59 Singular Exp $ */
    55/*
    66* ABSTRACT: Utilities for staircase operations
     
    8181  }
    8282  *Nexist = k;
    83   if (!k)
     83  if (k==0)
    8484    return NULL;
    85   ek = ex = (scfmon)omAlloc(k * sizeof(scmon));
    86   hsecure = (scfmon) omAlloc(k * sizeof(scmon));
     85  ek = ex = (scfmon)omAlloc0(k * sizeof(scmon));
     86  hsecure = (scfmon) omAlloc0(k * sizeof(scmon));
    8787  for (i = sl; i>0; i--)
    8888  {
     
    141141  {
    142142    for (i=ev_length-1;i>=0;i--)
    143       omFreeSize(hsecure[i],(pVariables+1)*sizeof(scmon));
     143      omFreeSize(hsecure[i],(pVariables+1)*sizeof(int));
    144144    omFreeSize(hsecure, ev_length*sizeof(scmon));
    145145    omFreeSize(ev,  ev_length*sizeof(scmon));
Note: See TracChangeset for help on using the changeset viewer.