Changeset 790096 in git


Ignore:
Timestamp:
Jul 27, 2007, 9:37:53 AM (17 years ago)
Author:
Hans Schönemann <hannes@…>
Branches:
(u'spielwiese', 'fe61d9c35bf7c61f2b6cbf1b56e25e2f08d536cc')
Children:
933871af039b13f2d88c1b7e79b84eb0d4fcc521
Parents:
34f579d74be005a72ab482b2155215f93851a854
Message:
*hannes: 64bit problems...


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

Legend:

Unmodified
Added
Removed
  • kernel/longrat.cc

    r34f579 r790096  
    22*  Computer Algebra System SINGULAR     *
    33****************************************/
    4 /* $Id: longrat.cc,v 1.22 2007-07-25 15:18:20 Singular Exp $ */
     4/* $Id: longrat.cc,v 1.23 2007-07-27 07:37:53 Singular Exp $ */
    55/*
    66* ABSTRACT: computation with long rational numbers (Hubert Grassmann)
     
    400400  if (SR_HDL(a) & SR_INT)
    401401     return 1; /* immidiate int */
    402   int s=a->z._mp_alloc-1;
    403   while ((s>0) &&(a->z._mp_d[s]==0L)) s--;
     402  int s=a->z._mp_alloc;
     403//  while ((s>0) &&(a->z._mp_d[s]==0L)) s--;
    404404//#if SIZEOF_LONG == 8
    405405//  if (a->z._mp_d[s] < (unsigned long)0x100000000L) s=s*2-1;
    406406//  else s *=2;
    407407//#endif
    408   s++;
     408//  s++;
    409409  if (a->s<2)
    410410  {
    411     int d=a->n._mp_alloc-1;
    412     while ((d>0) && (a->n._mp_d[d]==0L)) d--;
     411    int d=a->n._mp_alloc;
     412//    while ((d>0) && (a->n._mp_d[d]==0L)) d--;
    413413//#if SIZEOF_LONG == 8
    414414//    if (a->n._mp_d[d] < (unsigned long)0x100000000L) d=d*2-1;
Note: See TracChangeset for help on using the changeset viewer.