Changeset c1b9927 in git for factory/cf_map_ext.cc


Ignore:
Timestamp:
Jun 7, 2011, 3:27:18 PM (13 years ago)
Author:
Hans Schoenemann <hannes@…>
Branches:
(u'spielwiese', 'fe61d9c35bf7c61f2b6cbf1b56e25e2f08d536cc')
Children:
639652f186091509059ccc76f18852db93c1b988
Parents:
6e2ef0e6c1f75468f4ae12cfb9e5273eb4aa81c1
Message:
- removed some unsed variables
- never put static inline routine without a body in a .h file



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

Legend:

Unmodified
Added
Removed
  • factory/cf_map_ext.cc

    r6e2ef0e rc1b9927  
    5353{
    5454  int j= 1;
    55   if (pos > list.length() || pos < 1) return 0;
    56   for (CFListIterator i= list; j <= pos; i++, j++)
    57   {
    58     if (j == pos)
    59       return i.getItem();
    60   }
     55  if ((pos > 0) && (pos <= list.length()))
     56  {
     57    for (CFListIterator i= list; j <= pos; i++, j++)
     58    {
     59      if (j == pos)
     60        return i.getItem();
     61    }
     62  }
     63  return 0;
    6164}
    6265
     
    140143  int exp;
    141144  CanonicalForm result= 0;
    142   char gf_name_buf= gf_name;
    143145  InternalCF* buf;
    144146  if (F.inBaseDomain())
     
    376378    int p= getCharacteristic ();
    377379    zz_p::init (p);
    378     zz_pX NTLMipo= convertFacCF2NTLzzpX (getMipo (beta)); 
     380    zz_pX NTLMipo= convertFacCF2NTLzzpX (getMipo (beta));
    379381    zz_pE::init (NTLMipo);
    380382    zz_pEX NTLPrimElemMipo= convertFacCF2NTLzz_pEX (primElemMipo, NTLMipo);
     
    397399  int p= getCharacteristic ();
    398400  zz_p::init (p);
    399   zz_pX NTL_mipo= convertFacCF2NTLzzpX (getMipo (beta)); 
     401  zz_pX NTL_mipo= convertFacCF2NTLzzpX (getMipo (beta));
    400402  zz_pE::init (NTL_mipo);
    401403  zz_pEX NTL_alpha_mipo= convertFacCF2NTLzz_pEX (getMipo(alpha), NTL_mipo);
    402404  zz_pE NTLBeta= to_zz_pE (convertFacCF2NTLzzpX (beta));
    403405  vec_zz_pE roots= FindRoots (NTL_alpha_mipo);
    404   long ind;
     406  long ind=-1;
    405407  for (long i= 0; i < roots.length(); i++)
    406408  {
Note: See TracChangeset for help on using the changeset viewer.