Changeset 57e94c4 in git


Ignore:
Timestamp:
Nov 15, 1999, 5:22:50 PM (25 years ago)
Author:
Wilfred Pohl <pohl@…>
Branches:
(u'fieker-DuVal', '117eb8c30fc9e991c4decca4832b1d19036c4c65')(u'spielwiese', '648d28f488f6ff08f5607ff229b9ad9e4a5b93c2')
Children:
416465cfca65379c427648bc9a35bc331345a29f
Parents:
d9909c94593c093ae99a6b1884d5343aba29fbb3
Message:
memory-bug fixed


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

Legend:

Unmodified
Added
Removed
  • Singular/gnumpfl.cc

    rd9909c9 r57e94c4  
    22*  Computer Algebra System SINGULAR     *
    33****************************************/
    4 /* $Id: gnumpfl.cc,v 1.11 1999-09-16 12:33:56 Singular Exp $ */
     4/* $Id: gnumpfl.cc,v 1.12 1999-11-15 16:22:50 pohl Exp $ */
    55/*
    66* ABSTRACT: computations with GMP floating-point numbers
     
    259259    return;
    260260  }
    261 
    262261  ngfPower(x,exp-1,u);
    263262
     
    265264  *n=*(gmp_float*)x;
    266265  *(gmp_float*)(*u) *= *(gmp_float*)n;
    267 
     266  delete (gmp_float*)n;
    268267}
    269268
     
    294293  if ( b==NULL )
    295294  {
    296     return (((gmp_float*)a)->sign() < 0);
     295    return (((gmp_float*)a)->sign() > 0);
    297296  }
    298297  return ( (*(gmp_float*)a) > (*(gmp_float*)b) );
Note: See TracChangeset for help on using the changeset viewer.