Changeset b8f562 in git for libpolys/coeffs/numbers.cc


Ignore:
Timestamp:
Mar 13, 2014, 1:32:13 PM (10 years ago)
Author:
Hans Schoenemann <hannes@…>
Branches:
(u'spielwiese', '6e12f9861a9fbafef8cfe9d754bf74a7d483a67b')
Children:
b9cb8c8a040ef87acfc952d2d3984a3574c8d888
Parents:
4e56502b6def8f585d698b2aeb301eaf4058b84f12f99241d3dee1439cdbdb7ec86a393c468c17fe
Message:
Merge pull request #537 from mmklee/factory_emsg

Factory emsg
File:
1 edited

Legend:

Unmodified
Added
Removed
  • libpolys/coeffs/numbers.cc

    r12f992 rb8f562  
    508508    {
    509509      nInitCharTable=(cfInitCharProc*)omAlloc0(
    510                                           nLastCoeffs*sizeof(cfInitCharProc));
     510                                          ((int)nLastCoeffs+1)*sizeof(cfInitCharProc));
    511511      memcpy(nInitCharTable,nInitCharTableDefault,
    512               (nLastCoeffs-1)*sizeof(cfInitCharProc));
     512              ((int)nLastCoeffs)*sizeof(cfInitCharProc));
    513513    }
    514514    else
    515515    {
    516516      nInitCharTable=(cfInitCharProc*)omReallocSize(nInitCharTable,
    517                                           (((int)nLastCoeffs)-1)*sizeof(cfInitCharProc),
    518                                           ((int)nLastCoeffs)*sizeof(cfInitCharProc));
     517                                          ((int)nLastCoeffs)*sizeof(cfInitCharProc),
     518                                          (((int)nLastCoeffs)+1)*sizeof(cfInitCharProc));
    519519    }
    520520
Note: See TracChangeset for help on using the changeset viewer.