Changeset f450f3 in git


Ignore:
Timestamp:
Jul 18, 2020, 3:53:31 PM (4 years ago)
Author:
Hans Schoenemann <hannes@…>
Branches:
(u'fieker-DuVal', '117eb8c30fc9e991c4decca4832b1d19036c4c65')(u'spielwiese', '3720ae8bfcff4a4649ee98a15552089151d2d59b')
Children:
9daa8d134122c4a1c046f05940e8817eac5c9b34
Parents:
5f56325b86f62a2d25723e9c60bcbfe33adebe8e
Message:
fix: int overflow in binom
File:
1 edited

Legend:

Unmodified
Added
Removed
  • libpolys/polys/simpleideals.cc

    r5f5632 rf450f3  
    922922int binom (int n,int r)
    923923{
    924   int i,result;
     924  int i;
     925  int64 result;
    925926
    926927  if (r==0) return 1;
     
    937938    result /= i;
    938939  }
    939   return result;
     940  return (int)result;
    940941}
    941942
Note: See TracChangeset for help on using the changeset viewer.