Changeset cbb89a7 in git


Ignore:
Timestamp:
Jul 23, 2019, 5:24:29 PM (5 years ago)
Author:
Andreas Steenpass <steenpass@…>
Branches:
(u'spielwiese', 'fe61d9c35bf7c61f2b6cbf1b56e25e2f08d536cc')
Children:
78eaa84453d3bc2debf5cd1ddaf7dd28874d6139
Parents:
408d0ac6fb66db4f8104c49c7a7da96edffb1870
Message:
fix type warning in parse_ordering()
File:
1 edited

Legend:

Unmodified
Added
Removed
  • Singular/LIB/standard.lib

    r408d0a rcbb89a7  
    25722572{
    25732573  string name;
    2574   def w;   // int for name == "L", intvec otherwise
    25752574  int b1 = find(ordering, "(", 1);
    25762575  if (b1 == 0)   // no parentheses
     
    25792578    if (name == "C" || name == "c")
    25802579    {
    2581       w = intvec(0);
     2580      intvec w = intvec(0);
    25822581    }
    25832582    else
    25842583    {
    2585       w = 1:n_vars;
     2584      intvec w = 1:n_vars;
    25862585    }
    25872586  }
     
    25952594      if (name == "L")
    25962595      {
    2597         w = int(ordering[b1+1, b2-b1-1]);
     2596        int w = int(ordering[b1+1, b2-b1-1]);
    25982597      }
    25992598      else
    26002599      {
    2601         w = 1:int(ordering[b1+1, b2-b1-1]);
     2600        intvec w = 1:int(ordering[b1+1, b2-b1-1]);
    26022601      }
    26032602    }
     
    26052604    {
    26062605      list W = tuple_to_tokens(ordering[b1, b2-b1+1]);
    2607       w = intvec(int(W[1..size(W)]));
     2606      intvec w = intvec(int(W[1..size(W)]));
    26082607    }
    26092608  }
Note: See TracChangeset for help on using the changeset viewer.