Changeset 756dc7 in git


Ignore:
Timestamp:
Apr 21, 2020, 2:39:39 PM (3 years ago)
Author:
Karim Abou Zeid <karim23697@…>
Branches:
(u'spielwiese', '828514cf6e480e4bafc26df99217bf2a1ed1ef45')
Children:
8e903f23324de1e4ec1dc9926b6de0a16de605d6
Parents:
f3be8e67518a43d2fdb745cb875edc24988c90a7
Message:
Fix segfault because of components in LP
File:
1 edited

Legend:

Unmodified
Added
Removed
  • libpolys/polys/shiftop.cc

    rf3be8e6 r756dc7  
    594594
    595595// splits a frame (e.g. x(1)*y(5)) m1 into m1 and m2 (e.g. m1=x(1) and m2=y(1))
    596 // according to p which is inside the frame
    597 // at is the number of the block, starting at 1
     596// at is the number of the block to split at, starting at 1
    598597void k_SplitFrame(poly &m1, poly &m2, int at, const ring r)
    599598{
     
    604603
    605604  m2 = p_GetExp_k_n(m1, 1, split, r);
     605  p_SetComp(m2, 0, r); // important, otherwise both m1 and m2 have a component set, this leads to problems later
     606  p_Setm(m2, r); // p_mLPunshift also implicitly calls p_Setm(), but just for the case this changes in future.
    606607  p_mLPunshift(m2, r);
    607608
Note: See TracChangeset for help on using the changeset viewer.