Changeset 57e94c4 in git for Singular/gnumpfl.cc


Ignore:
Timestamp:
Nov 15, 1999, 5:22:50 PM (24 years ago)
Author:
Wilfred Pohl <pohl@…>
Branches:
(u'spielwiese', 'fe61d9c35bf7c61f2b6cbf1b56e25e2f08d536cc')
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.